/*
All Code Copyright 2003 Matthew Knight for RackitTechnology.com
Don't steal this.  You don't see me stealing your stuff, now do you?  So go write your own.
All Rights Reserved, blah blah blah.
*/

function doSearch(s) {
	if (isWhitespace(s)) {
		alert(" Please enter your search criteria. ");
		return false;
	} else {
		return true;
	}
}
function doCustomerLogin(f) {
	if (isEmail(f.email_address.value) && !isWhitespace(f.password.value)) {
		setCookie('RACKIT_CUSTOMER_EMAIL',f.email_address.value,expiration(365));
		return true;
	} else {
		alert(" Please check your login information and try again. ");
		return false;
	}
}
function checkQty(qty) {
	var q = qty.value;
	if (isInteger(q) && q>0) return true;
	else {
		alert(" Please enter a valid quantity. ");
		qty.focus();
		return false;
	}
}

/** New function added by Jeff 7/30/2006 **/
var popUpWin=0;
function popUpWindowNamed(URLStr)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }

	popUpWin=window.open("", "newwin", "height=480, width=640,toolbar=no,scrollbars=no,menubar=no");
	popUpWin.document.write("<HTML>");
	popUpWin.document.write("<TITLE>Unusual1.com</TITLE>");
	popUpWin.document.write("<BODY BGCOLOR=white>");	
	popUpWin.document.write('<img src="' + URLStr + '">');
	popUpWin.document.write("</BODY>");
	popUpWin.document.write("</HTML>");  
  
}


/**
Original function below
function popUpWindowNamed(URLStr){
	OpenWindow=window.open("", "newwin", "height=480, width=640,toolbar=no,scrollbars=no,menubar=no");
	OpenWindow.document.write("<HTML>");
	OpenWindow.document.write("<TITLE>Unusual1.com</TITLE>");
	OpenWindow.document.write("<BODY BGCOLOR=white>");	
	OpenWindow.document.write('<img src="' + URLStr + '">');
	OpenWindow.document.write("</BODY>");
	OpenWindow.document.write("</HTML>");
}
**/