

/* Sub Window Script */

function openW(dest,winName,theWidth,theHeight) {newWin = window.open("" + dest, winName, "width=" + theWidth + ",height=" + theHeight + ",top=0,left=0,menubar=yes,toolbar=yes,location=yes,directories=no,scrollbars=yes,status=yes,resizable=yes");}



function openWn(dest,winName,theWidth,theHeight) {newWin = window.open("" + dest, winName, "width=" + theWidth + ",height=" + theHeight + ",top=0,left=0,menubar=no,toolbar=no,location=no,directories=no,scrollbars=no,status=no,resizable=no");}


/* Hidden Search Engine Tagline Script */

function searchtag(){
document.write("Visit the Central San Joaquin Valley Chapter AORN 0502 today!")
}


if(top != self) {
	top.location = location
}




/* Copyright Script */

function copyrightDate(){
wriYr = new Date
var doYr = wriYr.getFullYear()
document.write("Central San Joaquin Valley AORN  Chapter 0502 <br> Copyright &#169 " + doYr + " - All Rights Reserved ")
}


/* Sierra design Script */

function sd(){
document.write("Website Assistance Provided By <br> Sierra design")
}


/* Dont take my code Script */

if(top != self) {
	top.location = location
}


/* Email Verify 1 */

function checkmail()
{
	var form=window.document.forms(0);
	var field=form.elements(0);
	var i=0;
	var j=0;
	var str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
	var strchr = "!#$%^&*()=+''?><{}[]|\/:;~` "
	var strat = "@";
	var strdot = ".";
	var flag = 0;	
	var countat = 0;
	var countdt = 0;
			
	if (field.value.length < 46)
	{
		flc=1;
		alert("Not a Valid E-mail Address");
		field.focus();
		field.value="";
		return false;
	}
	else 
	{
		flag = 0;
			
		for(i=0; i<=field.value.length-1; i++)
		{
			if(field.value.substring(i,i+1) == strat)
			{						
				flag = 1;
				break;	
			}
			countat = countat +1;
		}
			
		if (flag == 0 ) 
		{
			flc=1;
			alert("Not a Vaild E-mail Address");
			field.focus();		
			field.value="";
			return false;		
		}
		else
		{
			flag = 0;
		
			for(i=0; i<=field.value.length-1; i++)
			{
				if(field.value.substring(i,i+1) == strdot)
				{
					flag = 1;
					break;	
				}
			countdt = countdt + 1;
			}
			
			if (flag == 0 ) 
			{
				flc=1;
				alert("Not a Vaild E-mail Address");
				field.focus();
				field.value="";
				return false;			
			}
			else if (countdt == field.value.length - 1)
			{
				flc=1;
				alert("Not a Vaild E-mail Address");
				field.focus();
				field.value="";
				return false;
			}
			else if (countat == countdt-1)
			{
				flc=1;
				alert("Not a Valid E-mail Address VERY NEXT");
				field.focus();
				field.value="";
				return false;
			}
			else 
			{					
				for (i=0; i<field.value.length; i++)
				{
					for (j=0; j<strchr.length-1; j++)
					{
						if (field.value.substring(i,i+1) == strchr.substring(j,j+1))
						{					
							flc=1;
							alert("Not a valid character " + strchr.substring(j,j+1));
							field.focus();
							field.value="";
							return false;
							break;
						}
					}
				}
			}																	
		}							
	}
	return true;
}






/* Email Verify 2 */

function CheckName(HoldName)
{
NoNumThere='true';

for(i=0; i<HoldName.length; i++)
{

for(j=0; j<10; j++)
{

if(HoldName.charAt(i)==j.toString())
{

NoNumThere='false';
break;

}

}

if(NoNumThere=='false')
{

break;

}

}

return NoNumThere;

}

function CheckMail(HoldMail)
{

IsValid='true';

if(HoldMail.indexOf("@")<=0)
{

IsValid='false';

}

return IsValid;

}

function checkfields()
{

var AllFilled='true';

for(i=0; i<3; i++)
{

if(visitor.elements[i].value.length==0)
{

alert("The field [" + visitor.elements[i].name + "] can not be left blank.");
AllFilled='false';
visitor.elements[i].focus;
return;

}

}

if(AllFilled=='true')
{

var NameValid=true;
var EmailValid=true;
NameValid=CheckName(visitor.Full_Name.value);
EmailValid=CheckMail(visitor.EMail.value);

if(NameValid=='false')
{

alert("Sorry, your name can not contain numbers.");
visitor.Full_Name.focus;

}

if(EmailValid=='false')
{

alert("Sorry, this does not seem like a valid email address.");

}

}

if(NameValid=='true' & EmailValid=='true')
{

alert("RIGHTO!!!");

}

}


















function checkform ( form )
{
// 
  if (form.Full_Name.value == "") {
    alert( "Please enter your name." );
    form.Full_Name.focus();
    return false ;
  }

  if (form.EMail.value == "") {
    alert( "Please enter your email address." );
    form.EMail.focus();
    return false ;
  }


// 
  return true ;
}










function savecheckform ( form )
{
// 
  if (form.Full_Name.value == "") {
    alert( "Please enter your name." );
    form.Full_Name.focus();
    return false ;
  }

  if (form.EMail.value == "") {
    alert( "Please enter your email address." );
    form.EMail.focus();
    return false ;
  }


// 
  return true ;
}



var windowW=300 // wide
var windowH=250 // high
var windowX = 260 // from left
var windowY = 100 // from top
var urlPop = "support.html"
var title =  "Support"
// set this to true if the popup should close
// upon leaving the launching page; else, false
var autoclose = true
// do not edit below this line
s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false
function openFrameless() {
if (beIE) {
NFW = window.open("","popFrameless","fullscreen,"+s);
NFW.blur();
window.focus();
NFW.resizeTo(windowW,windowH);
NFW.moveTo(windowX,windowY);
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=auto>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>";
NFW.document.open();
NFW.document.write(frameString);
NFW.document.close();
}
else {
NFW = window.open(urlPop,"popFrameless","scrollbars,"+s);
NFW.blur();
window.focus();
NFW.resizeTo(windowW,windowH);
NFW.moveTo(windowX,windowY);
}
NFW.focus();
if (autoclose) {
window.onunload = function(){NFW.close();}
   }
}

