function OpenWindow(url,intWidth,intHeight) { 
var winl = (screen.width - intWidth) / 2;
var wint = (screen.height - intHeight) / 2;
mywindow = window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",top="+wint+",left="+winl+",resizable=0,scrollbars=1") ;
isOpened = true;
if (parseInt(navigator.appVersion) >= 4) { mywindow.window.focus(); }
}

function OpenWindow2(url,homes,intWidth,intHeight) { 
var winl = (screen.width - intWidth) / 2;
var wint = (screen.height - intHeight) / 2;
mywindow = window.open(url, homes, "width="+intWidth+",height="+intHeight+",top="+wint+",left="+winl+",resizable=0,scrollbars=1") ;
isOpened = true;
if (parseInt(navigator.appVersion) >= 4) { mywindow.window.focus(); }
}
function popup(url,homes,intWidth,intHeight) { 
var winl = (screen.width - intWidth) / 2;
var wint = (screen.height - intHeight) / 2;
mywindow = window.open(url, homes, "width="+intWidth+",height="+intHeight+",top="+wint+",left="+winl+",resizable=0,scrollbars=0") ;
isOpened = true;
if (parseInt(navigator.appVersion) >= 4) { mywindow.window.focus(); }
}

function OpenChat(url,homes,intWidth,intHeight) { 
var winl = (screen.width - intWidth) / 2;
var wint = (screen.height - intHeight) / 2;
mywindow = window.open(url, homes, "width="+intWidth+",height="+intHeight+",top="+wint+",left="+winl+",resizable=0,status=yes,scrollbars=1") ;
isOpened = true;
if (parseInt(navigator.appVersion) >= 4) { mywindow.window.focus(); }
}