
var startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("navUL");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}

function validate(theForm)
	{
	  if(theForm.fname.value=="")
	   {
			alert ("First Name is  a required field.Please fill it in and try again");
			theForm.fname.focus();
			return(false);
	   }
	   
	   if(theForm.lname.value=="")
	   {
			alert ("Last Name is  a required field.Please fill it in and try again");
			theForm.lname.focus();
			return(false);
	   } 
	   
	    if(theForm.phone.value=="")
	   {
			alert ("Phone is  a required field.Please fill it in and try again");
			theForm.phone.focus();
			return(false);
	   }
	    
	    if(theForm.email.value=="")
	   {
			alert ("Email is  a required field.Please fill it in and try again");
			theForm.email.focus();
			return(false);
	   }
			
		if(theForm.email.value.indexOf("@") < 1 || theForm.email.value.indexOf(".") < 1)
    	{
        alert("Please enter a valid Email address")
      	theForm.email.focus();            
				return false;
    	}	   
		    
	   // if(theForm.selIndustry.value=="")
	   //{
		//	alert ("Industry is a required field. Please select it and try again");
		//	theForm.selIndustry.focus();
		//	return(false);
	   //} 

	    if(theForm.comments.value=="")
	   {
			alert ("Comments is  a required field.Please fill it in and try again");
			theForm.comments.focus();
			return(false);
	   } 

	    return (true);
    }  
	
//Script for form reset starts here //
function reForm(){
	formNull=document.forms.length;
	for(i=0; i<formNull; i++){
		document.forms[i].reset();
		}
}
//Script for form reset ends here //

var win=null;
var win1=null;

function NewWindow(mypage,myname,w,h,scroll,l,s,m,t,r,pos)
{
	if(pos=="random")
	{
		LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
	}
	if(pos=="center")
	{
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
	}
	else if((pos!="center" && pos!="random") || pos==null)
	{
		LeftPosition=0;TopPosition=20
	}
	
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location='+l+',directories=no,status='+s+',menubar='+m+',toolbar='+t+',resizable='+r+'';
	
	if(!win ||win.closed)
	{
		//alert('hi -1');
		win=window.open(mypage,myname,settings);
	}
	else
	{	
		if (win.name==myname)
		{
			//alert('hi');
			win.close();
			//win.focus();
			win=window.open(mypage,myname,settings);
		}
		else
		{	
			if(!win1||win1.closed)
			{
				//alert('hi 1');
				win1=window.open(mypage,myname,settings);
			}
			else
			{	
				if(win1.name==myname)
				{
					//alert('hi 2');
					win1.focus();
					win1=window.open(mypage,myname,settings);
				}
				else
				{
					//alert('hi 3');
					//win1.focus();
					win1=window.open(mypage,myname,settings);
					win1.focus();
				}			
			}
			win1.focus();		
		}	
	}		return false;
}