function popupCenter(ocURL,ocName,ocFeatures){var ocWidth=500;var ocHeight=400;var strTemp=ocFeatures;if(strTemp.match(",")){var arrF=new Array();arrF=strTemp.split(",");for(var z=0;z<arrF.length;z++)
{if(arrF[z].match("width=")){ocWidth=parseInt(arrF[z].replace(/width=/,""));}
if(arrF[z].match("height=")){ocHeight=parseInt(arrF[z].replace(/height=/,""));}}}
var left=parseInt((screen.availWidth/2)-(ocWidth/2));var top=parseInt((screen.availHeight/2)-(ocHeight/2));var windowFeatures="left="+left+",top="+top+",screenX="+left+",screenY="+top+","+ocFeatures;if(ocURL.match(/\.(gif|jpg|png)$/i)==null)
{myWindow=window.open(ocURL.toString(),ocName.toString(),windowFeatures);}
else{myWindow=window.open("",ocName.toString(),windowFeatures);var doc=myWindow.document;doc.write('<html>');doc.write('<body style="margin:0px">');doc.write('<img src="'+ocURL+'" border=0>')
doc.write('</body>');doc.write('</html>');}}
function Set_Cookie(name,value,expires,path,domain,secure)
{var today=new Date();today.setTime(today.getTime());if(expires)
{expires=expires*1000*60;}
var expires_date=new Date(today.getTime()+(expires));document.cookie=name+"="+escape(value)+
((expires)?";expires="+expires_date.toGMTString():"")+
((path)?";path="+path:"")+
((domain)?";domain="+domain:"")+
((secure)?";secure":"");}
function Get_Cookie(name){var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!=document.cookie.substring(0,name.length)))
{return null;}
if(start==-1)return null;var end=document.cookie.indexOf(";",len);if(end==-1)end=document.cookie.length;return unescape(document.cookie.substring(len,end));}
