var br=brPlatform="";
if(navigator.appVersion.indexOf("Win")!=-1) var brPlatform="windows";
else var brPlatform="Other";

function movewin() { return; }

function movewin(win, width, height) 
{
	var fullWidth = screen.availWidth;
	var fullHeight = screen.availHeight;
	var x = (fullWidth/2)-(width/2);
	var y = (fullHeight/2)-(height/2);
	win.moveTo(x,y); 
}

function viewWinnew(filenames,width,height)
	{
	
	filenames=filenames;
	width=width;
	height=height;
		
	var newwin = window.open(filenames, 'mydoc', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,maximize=0,width='+width+',height='+height);
	
	movewin(newwin, width, height);
	    if (navigator.appName=="Netscape") 
	        newwin.location=url;
		
		newwin.opener=window;
		newwin.focus();
		return false;
	}

function viewWin(filenames)
	{
	
	var mybars='width=450,height=540,directories=no,location=no,menubar=no,status=no,screenX=0,screenY=0';
	mybars+=',titlebar=no,toolbar=no';
	myoptions='scrollbars=yes,resizeable=yes';
	myfeatures=mybars+ ','+myoptions
	
	var newwin=window.open(filenames,'mydoc',myfeatures);
		movewin(newwin, 450, 540);
	
	    if (navigator.appName=="Netscape") newwin.location=url;
		newwin.opener=window;
		newwin.focus();
		return false;
	}
	
function viewWinsmall(filenames)
	{
	
	var mybars='width=300,height=300,directories=no,location=no,menubar=no,status=no,screenX=0,screenY=0';
	mybars+=',titlebar=no,toolbar=no';
	myoptions='scrollbars=yes,resizeable=yes';
	myfeatures=mybars+ ','+myoptions
	
	var newwin=window.open(filenames,'mydoc',myfeatures);
		movewin(newwin, 300, 300);
	
	    if (navigator.appName=="Netscape") newwin.location=url;
		newwin.opener=window;
		newwin.focus();
		return false;
	}

var timerID;
function winStatus(txt) {
 
	var displayMe;
	if(txt) displayMe=txt;
	else displayMe="";
	if(timerID) clearTimeout(timerID);
	if(br=="NS6") timerID=setTimeout("window.status='"+displayMe+"'",1);
	else window.status=displayMe;
	return true;
}
 	
 function chk_subscribe()
 {
 //alert("welcome");	
 var frm= document.subscribe;
 if(frm.ename.value=="")
 {
   alert("Please Enter Your Name");
    frm.ename.focus();
    return false;	
}
 var email= document.subscribe.email;
 if (email.value == 0 )
		{
			alert("Please enter your email address");
			email.focus();
			return false;
		}
	
		// Email Checker
		if (email.value.indexOf("@") < 0)	
		{
			alert("Incorrect email address. Please re-enter");
			email.focus();
			return false;
		}
	
		// Email Checker
		if (email.value.indexOf(".") < 0)	
		{
			alert("Incorrect email address. Please re-enter");
			email.focus();
			return false;
		}
	
		// Email Checker
		if (email.value.indexOf(" ") >= 0)	
		{
			alert("Incorrect email address. Please re-enter");
			email.focus();
			return false;
		}
		
}
 function chk_contact()
 {
  
  var frm =document.contact;
  
  if(frm.fname.value=="")
   {
     alert("Please Enter First Name");
      frm.fname.focus();
      return false;	
   }	
   
  if(frm.sname.value=="")
   {
     alert("Please Enter Surname");
      frm.sname.focus();
      return false;	
   }	
   
  if(frm.email.value=="")
   {
     alert("Please Enter Email");
      frm.email.focus();
      return false;	
   }	
   
   var email =document.contact.email;
   // Email Checker
		if (email.value.indexOf("@") < 0)	
		{
			alert("Incorrect email address. Please re-enter");
			email.focus();
			return false;
		}
	
		// Email Checker
		if (email.value.indexOf(".") < 0)	
		{
			alert("Incorrect email address. Please re-enter");
			email.focus();
			return false;
		}
	
		// Email Checker
		if (email.value.indexOf(" ") >= 0)	
		{
			alert("Incorrect email address. Please re-enter");
			email.focus();
			return false;
		}
		
		
	  
  if(frm.comment.value=="")
   {
     alert("Please Enter Comment");
      frm.comment.focus();
      return false;	
   }		
}

function  chk_search()
{
   var frm=document.search;
   
   
   if(frm.search_txt.value=="")
   {
     alert ("Enter Text for Search");
     frm.search_txt.focus();
     return false;
    }	
}