﻿// JScript File
function setOpenerLocation(url, close)
{			
    if(opener==null)
    {
	    this.document.location=url;
    }
    else if(opener.closed)
    {
	    window.open(url,"temp");
    }		
    else if(opener!=null)
    {
	    opener.document.location=url;	
	    opener.focus();
    }
	
    if(close==1) 
    {
	    this.close();
    }
}   

function popWindow(childURL,height,width,type)
{
    var re, urlstr,menu;
    re = /\^/g;
    urlstr = childURL.replace(re,"\\");
    while (urlstr.indexOf(" ") > -1) 
    {
	    urlstr = urlstr.replace(" ","%20");
    }
    if (height == ''){height = "600"};
    if (width== ''){width= "700"};
    if (type== 'with_menu'){menu= "1"};
    if (type== 'without_menu'){menu= "0"};
    myRemote = window.open(urlstr, "myRemote", "height=" +height + ",width=" +width + ",ScreenX = 5,ScreenY = 5,alwaysRaised,hotkeys,menubar=" +menu+ ",resizable,,scrollbars,titlebar,z-lock");
}