function openWinOsc(url, target){	
		var ie=(document.all);
		var w3=(document.getElementById && !ie);
		if (ie) {
			params = top.mainFrameOsc.frmOsc.txt_session_id.value;			
		}else if(w3) {
			params = top.frames['mainFrameOsc'].document.forms['frmOsc'].elements['txt_session_id'].value;
		}	
		
		window.open(url + params ,target);
}
	
function openNewWindow(URLtoOpen, windowName, windowFeatures) { 
	newWindow=window.open(
		URLtoOpen, windowName, windowFeatures
	); 
}

function openNewPopUp(URLtoOpen, windowName) {
	//var windowFeatures = 'top='+((screen.height - 300) / 2)+',left='+((screen.width - 300) / 2)+'+,toolbar=0 status=1,resizable=0,Width=500,height=500,scrollbars=0';
	var windowFeatures = 'top='+((screen.height - 500) / 2)+',left='+((screen.width - 700) / 2)+'+,toolbar=0 status=1,resizable=0,Width=700,height=500,scrollbars=0';
	newWindow=window.open(
		URLtoOpen, windowName, windowFeatures
	); 
}

function popupchat(mylink, windowname) {
var winleft = (screen.width - 600) / 2;
var winUp = (screen.height - 150) / 2;
if (! window.focus)return true;
  var href;
  if(typeof(mylink) == 'string')
    href=mylink;
  else
    href=mylink.href;
    window.open(href, windowname, 'top='+((screen.height - 120) / 2)+',left='+((screen.width - 300) / 2)+'+,toolbar=0 status=1,resizable=0,Width=300,height=120,scrollbars=0');
}
function popuptemplatehelp(mylink, windowname) {
var winleft = (screen.width - 600) / 2;
var winUp = (screen.height - 150) / 2;
if (! window.focus)return true;
  var href;
  if(typeof(mylink) == 'string')
    href=mylink;
  else
    href=mylink.href;
    window.open(href, windowname, 'top='+((screen.height - 600) / 2)+',left='+((screen.width - 500) / 2)+'+,toolbar=0 status=1,resizable=0,Width=500,height=600,scrollbars=1');
}
function popuptemplatepricefaq(mylink, windowname) {
var winleft = (screen.width - 600) / 2;
var winUp = (screen.height - 150) / 2;
if (! window.focus)return true;
  var href;
  if(typeof(mylink) == 'string')
    href=mylink;
  else
    href=mylink.href;
    window.open(href, windowname, 'top='+((screen.height - 250) / 2)+',left='+((screen.width - 500) / 2)+'+,toolbar=0 status=1,resizable=0,Width=500,height=250,scrollbars=0');
}
function Popup2(url){
	window.open(
		url,
		'window',
		'width=800, height=600, resizable=yes, scrollbars=yes, location=no,  toolbar=no, menubar=no, status=no'
	);
}
// Hide "www.mytemplatestorage.com" from status bar
function HideStatus(){
	window.status = document.readyState!="complete" ?
		"Loading..." : window.defaultStatus;
}
document.onreadystatechange = HideStatus;

