function popUp(URL,myWidth,myHeight,myScroll) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars="+myScroll+",location=0,statusbar=0,menubar=0,resizable=0,width="+myWidth+",height="+myHeight+",left = 426,top = 282');");
}
	
function imgswap(name, type)  
{
	 
  eval(document.getElementById(name).setAttribute('src','/skin_default/images/btn/' +name+ '-' +type+ '.gif'));	
}

function goto(form)
{
	var index=form.select.selectedIndex
		if (form.select.options[index].value != "0") {
		location=form.select.options[index].value;}
}

function ClearForm() {
  document.frmSearch.strSearch.value= "";
}

function ClearFormSearch() {
  document.frmSearch.strKeywords.value= "";
}

function ClearFormSignup() {
  document.frmSignup.Email.value= "";
}

function ToggleItem(myItem) {
	if (myItem.style.visibility != 'hidden') {
		HideItem(myItem);
	} else {
		ShowItem(myItem);
	}
	return false;
}
function ShowItem(myItem) {
	myItem.style.visibility = 'visible';
	myItem.style.display = '';
}
function HideItem(myItem) {
	myItem.style.visibility = 'hidden';
	myItem.style.display = 'none';
}

function movepic2(img_name,img_src) {
		document[img_name].src=img_src;
}
function movepic3(img_name,img_src) {
		document[img_name].src=img_src;
}	

function ValidatorSignup(theForm)
{
 
  if (theForm.Email.value == "")
  {
    alert("Please enter your email address");
    theForm.Email.focus();
    return (false);
  }
 
  var pat_email = /^[-._&0-9a-zA-Z]+[@][-._&0-9a-zA-Z]+[.][._0-9a-zA-Z]+[a-zA-Z]$/;
 
  if ( pat_email.exec(theForm.Email.value) == null )
  {
         alert("You have not entered a valid email address.");
         theForm.Email.focus();
         return (false);
  }
 
  return (true);  
    
}
