function jumpURL(targ,root,selObj,restore){ 
  eval(targ+".location='"+root+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function link(url, width) {
   if (width==null) width = '640';
   window.open(url,"link","width="+width+",height=400,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,copyhistory=1")
  }


function isEmail(string) {
   if (!string) return false;
   if (string.indexOf("@")<2 || string.indexOf(".")<1 || string.indexOf(" ")> 0 ) return false;
  var iChars = "*|,\":<>[]{}`\';()&$#%";
   for (var i = 0; i < string.length; i++) {
      if (iChars.indexOf(string.charAt(i)) != -1)
         return false;
   }
   return true;
}


function isURL(theurl) {
  if (theurl.value == "http://" || theurl.indexOf(".")<1 || theurl.indexOf(" ")> 0 ) return false; 
  var iChars = "*|,\":<>[]{}`\';()&$#%";
   for (var i = 0; i < string.length; i++) {
      if (iChars.indexOf(string.charAt(i)) != -1)
         return false;
     } 
return true;
}

function validateNews(){

var emailadd = document.enews._fid_10.value;
if (emailadd == "" || emailadd.indexOf("@")<2 || emailadd.indexOf(".")<1 || emailadd.indexOf(" ")> 0 )
  {
    alert("Please enter a valid email address.");
    document.enews._fid_10.focus();
    return (false);
  }


if (document.enews._fid_18.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    document.enews._fid_18.focus();
    return (false);
  }

if (document.enews._fid_24[0].selected)
  {
    alert("Please enter a value for the country field.");
    document.enews._fid_24.focus();
    return (false);
  }
 return (true); 
}

function clearIt(theForm)
{
      document.ccoptin.ea.value=""
}

function mask(end,middle,start,subject){
var one ='mai';
var two='lto:';
var three='?Subject=';
//start,middle,end,subject;
var putogether= one+two+start+middle+end+three+subject;
document.location.href=eval('"'+putogether+'"');
window.status=putogether;
}
function pagelocation() {
	xloc = this.location.href;
	document.refform.pageloc.value = xloc;
	return (true);
}

