            function newWindow(mypage,myname,w,h,features) {
            if(screen.width){
            var winl = (screen.width-w)/2;
            var wint = (screen.height-h)/2;
            }else{winl = 0;wint =0;}
            if (winl < 0) winl = 0;
            if (wint < 0) wint = 0;
            var settings = 'height=' + h + ',';
            settings += 'width=' + w + ',';
            settings += 'top=' + wint + ',';
            settings += 'left=' + winl + ',';
            settings += features;
            win = window.open(mypage,myname,settings);
            win.window.focus();
            }
function popup(url,name,win_height,win_width) {
	pos_horizon = ((screen.width/2)-(win_width/2));
	pos_vertical = ((screen.height/2)-(win_height/2));
	window.open(url,name,"width="+win_width+",height="+win_height+",top="+pos_vertical+",left="+pos_horizon);
	}
	
//end of document pop up Slut -->

//Start of Form validation
//Login validations-->

function validate()
{
  username=document.myform.username.value;
  if (username == "" || username == null || username.charAt(0) == ' ')
  {
    alert("Please enter your username")
    document.myform.username.focus();
    return false;
  }
  else
    {
	password=document.myform.password.value;

	if (password == "" || password == null || password.charAt(0) == ' ')
	{
		alert("Password cannot be blank")
		document.myform.password.focus();
		return false;
	}

    }
}

