function OpenWin(fName){
		 var sparameters='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,height=' + (screen.height/3)*2 + ',width=' + (screen.width-10) + ',left=0,top=' + (screen.height-((screen.height/3)*2))/2
		var Name=window.open(fName,"send",sparameters);
		Name.focus();
	}

function getexpirydate(nomins){
var UTCstring;
Today = new Date();
nomilli=Date.parse(Today);
//Today.setTime(nomilli+nomins*24*60*60*1000);
Today.setTime(nomilli+nomins*60*1000);
UTCstring = Today.toUTCString();
return UTCstring;
}

function getcookie(cookiename) {
 var cookiestring=""+document.cookie;
 var index1=cookiestring.indexOf(cookiename);
 if (index1==-1 || cookiename=="") return ""; 
 var index2=cookiestring.indexOf(';',index1);
 if (index2==-1) index2=cookiestring.length; 
 return unescape(cookiestring.substring(index1+cookiename.length+1,index2));
}

function setcookie(name,value,duration){
cookiestring=name+"="+escape(value)+";EXPIRES="+getexpirydate(duration);
document.cookie=cookiestring;
if(!getcookie(name)){
return false;
}
else{
return true;
}
}