<!--
function GoSearch()
{
  	document.location = (document.all.SearchingPage.value+"?c=3&dosearch=1&p=1&s="+document.all.keywords.value+"&SearchField=All&cid=0")
}

function bookmark() {
	if ((navigator.platform!="MacPPC") && (navigator.appName=="Microsoft Internet Explorer") && (navigator.appVersion>="4")) {
		window.external.AddFavorite(location.href, document.title);
	}
	else {
	alert ('Press CTRL + D to Bookmark this page');
	}
}

function ValidateForm2(form)
{
  if (form.Name.value == "")
  { alert("Please include your Name in Name Field"); form.Name.focus(); return; }

  if (form.Country.value == "")
  { alert("Please include your Country"); form.Country.focus(); return; }

  if (form.Email.value == "")
  { alert("Please include your Email address in Email Field"); form.Email.focus(); return; }

  if (form.Email.value.indexOf('@', 0) == -1 ||
      form.Email.value.indexOf('.', 0) == -1)
  { alert("Please enter a valid Email address in Email Field"); form.Email.focus(); return; }
  
  if (form.comment.value == "")
  { alert("Please Type your Comments"); form.comment.focus(); return; }

  form.submit();
}

function deleteit(thisform) {
	thisform.email.value = ""
}

function Toggle(block) {
	if (navigator.appName=="Netscape") {	
		if (document.all[block].style.display == 'none') {
			document.all[block].style.display = '';
			document.all[block+'title'].style.color = '#cc0000';
			document.all[block+'img'].className = 'expanded';
//			document.images[block+'img'].src= "images/red_sqr_dotted.gif";
		} else if (document.all[block].style.display == '') {
			document.all[block].style.display = 'none';
//			document.images[block+'img'].src= "images/green_sqr_dotted.gif";
			document.all[block+'title'].style.color = '#5a6755';
			document.all[block+'img'].className = 'collapsed';
		  }
	} else if (navigator.appName.indexOf("Microsoft")!=-1) {
		if (document.all[block].style.display == 'none') {
			document.all[block].style.display = '';
			document.all[block+'title'].style.color = '#cc0000';
//			document.images[block+'img'].src= "images/red_sqr_dotted.gif";
			document.all[block+'img'].className = 'expanded';
		} else if (document.all[block].style.display == '') {
			document.all[block].style.display = 'none';
//			document.images[block+'img'].src= "images/green_sqr_dotted.gif";
			document.all[block+'title'].style.color = '#5a6755';
			document.all[block+'img'].className = 'collapsed';
		  }
	}
}

function isValidEmail(email){
    var RegExp = /^((([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+(\.([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+)*)@((((([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.))*([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.)[\w]{2,4}|(((([0-9]){1,3}\.){3}([0-9]){1,3}))|(\[((([0-9]){1,3}\.){3}([0-9]){1,3})\])))$/;
    if(RegExp.test(email)){
        return true;
    }else{
        return false;
    }
}

function DeleteEmailForm(form) {
form.email.value = ""
}

function checkEmail(form)
{
 
  if (form.email.value == "")
  { alert("Please enter your email address"); form.email.focus(); return; }
  
  if(!isValidEmail(form.email.value)){
  { alert("Your email is invalid. Please try again"); form.email.focus(); return; }
  
  }
  
  form.submit();
}

function displayBlock(BlockToDisply, BlockToHide1, BlockToHide2) {

 document.all[BlockToDisply].style.display=""
 document.all[BlockToDisply+'_Tab'].className= "MostPopularSelecte"
 document.all[BlockToHide1].style.display="none"
 document.all[BlockToHide1+'_Tab'].className= "MostPopularNotSelected"
 document.all[BlockToHide2].style.display="none"
 document.all[BlockToHide2+'_Tab'].className= "MostPopularNotSelected"
}
//-->

