function openWin(url,title,attrib) 
{
	wref=window.open(url,title,attrib);
}
function openInnewWindow(url,width,height,toolbar) 
{
	if(toolbar==1) {
		openWin(url,'','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width='+width+',height='+height)
	 }
	 else {
		openWin(url,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,movable=yes,resizable=no,top=200,left=200,width='+width+',height='+height)
	}
}
function setCookie(name, value, expires, path, domain, secure) 
{
    document.cookie= name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}
