function openWin(theurl)
{
	var newWin = window.open("","printWin","height=420,width=310 ,left=10,top=10,status=yes,toolbar=no,menubar=no,scrollbars=no,location=no,resizable=no");
	newWin.location.href=theurl;
	newWin.focus();
}

function openWin1(theurl)
{
	var newWin = window.open("","printWin","height=518,width=432,left=10,top=10,status=yes,toolbar=no,menubar=no,scrollbars=no,location=no,resizable=no");
	newWin.location.href=theurl;
	newWin.focus();
}


function openConWin(theurl)
    {
        var newWin = window.open("","printWin","height=700,width=570,left=10,top=10,status=yes,toolbar=no,menubar=no,scrollbars=yes,location=no,resizable=yes");
        newWin.location.href=theurl;
        newWin.focus();
    }



function openConWin1(theurl)
    {
        var newWin = window.open("","printWin","height=700,width=670,left=10,top=10,status=yes,toolbar=no,menubar=no,scrollbars=yes,location=no,resizable=yes");
        newWin.location.href=theurl;
        newWin.focus();
    }

function openEmailWin(theurl)
{
    var newWin = window.open("","_blank","height=490,width=320,left=10,top=10,status=yes,toolbar=no,menubar=no,scrollbars=no,location=no,resizable=no");
	newWin.location.href=theurl;
	newWin.focus();
}

function openSquareWin(theurl)
{
    var newWin = window.open("","printWin","height=687,width=1000,left=10,top=10,status=yes,toolbar=no,menubar=no,scrollbars=no,location=no,resizable=no");
	newWin.location.href=theurl;
	newWin.focus();
}

function openTourLinkWin(theurl)
{
    var newWin = window.open("","TourLink","height=700,width=810,left=10,top=10,status=yes,toolbar=no,menubar=no,scrollbars=yes,location=no,resizable=yes");
	newWin.location.href=theurl;
	newWin.focus();
}

function openNewWin(theurl)
{
    var newWin = window.open("","printWin","status=yes,toolbar=yes,menubar=yes,scrollbars=yes,location=yes,resizable=yes");
    newWin.location.href=theurl;
    newWin.focus();

}

function OpenPopupForm(url) {
    var mywindow = window.open(url, "", "width=840,height=800,top=0,left=0,resizable=1,scrollbars=1,status=1,toolbar=0,menubar=0");  
    mywindow.focus();
}  

function OpenPopupForm2(url) {
    var mywindow = window.open(url, "", "width=950,height=800,top=0,left=0,resizable=1,scrollbars=1,status=1,toolbar=0,menubar=0");  
    mywindow.focus();
}

function PopupWindow(url) {
    var mywindow = window.open(url, "", "width=650,height=550,top=100,left=100,resizable=1,scrollbars=1,status=1,toolbar=0,menubar=0");    
    return false;
}  

function OpenPrintVersion(url) {
    var mywindow = window.open(url, "", "width=530,height=550,top=150,left=350,resizable=0,scrollbars=1,status=1,toolbar=0,menubar=0");    
    mywindow.focus();
}  


function OpenInNewWindow(url)
{
    var newWin = window.open("","_new","height=950,width=1000,status=yes,toolbar=yes,menubar=yes,resizable=no,scrollbars=yes,location=yes,left=50,top=0");
    newWin.location.href=url;
    newWin.focus();	   
    return false;
}

function OpenCertificateWindow(url)
{
    var mywindow = window.open(url, "", "width=580,height=800,top=50,left=100,resizable=1,scrollbars=1,status=1,toolbar=1,menubar=1");    
    return false;
}    

function OpenPrintGSRForm(url) {
    var mywindow = window.open(url, "", "width=950,height=800,top=0,left=0,resizable=1,scrollbars=1,status=1,toolbar=0,menubar=1");  
    mywindow.focus();
}  

function OpenItineraryPage(url) {
    var mywindow = window.open(url,'Itinerary','height=500,width=1024,dialog=1,menubar=0,location=0,resizable=0,scrollbars=0,status=0,toolbar=0,directories=0');
    mywindow.focus();    
}

function OpenNew(url)
{
    var newWin = window.open("","_new","height=950,width=1000,status=yes,toolbar=yes,menubar=yes,resizable=yes,scrollbars=yes,location=yes,left=50,top=0");
    newWin.location.href=url;
    newWin.focus();	   
    return false;
}

function PopupWindow(url,width,height) {
    var mywindow = window.open(url, "", "width=" + width + ",height=" + height + ",top=100,left=100,resizable=1,scrollbars=1,status=1,toolbar=0,menubar=0");    
    return false;
}

function OpenPopupNoPostBack(url)
{
    var mywindow = window.open(url, "", "width=840,height=800,top=0,left=0,resizable=1,scrollbars=1,status=1,toolbar=0,menubar=0");  
    mywindow.focus();
    return false; 
}

function WindowCloseAndParentRefresh()
{
    if (window.opener.location.href.match("&tab"))
        window.opener.location.href = window.opener.location.href 
    else
        window.opener.location.href = window.opener.location.href  + '&tab=GroupChecks';

     if (window.opener.progressWindow)
		 {
            window.opener.progressWindow.close()
         } 
        window.close();
    return false;
}
function PopupWindowshow(url,width,height) {
    var mywindow = window.open(url, "", "width=" + width + ",height=" + height + ",top=100,left=100,resizable=0,scrollbars=0,status=1,toolbar=0,menubar=0");    
    return false;
}
function OpenChatWindow(url)
{
    var diasettings = "";
    diasettings = "dialogWidth:275px; dialogHeight:390px; center:yes; resizable:no; status:no;";
    var newWin = window.open(url, "", "height=390,width=275,dialog=yes,status=yes,toolbar=no,menubar=no,resizable=no,scrollbars=no,top=150,left=350");
    newWin.focus();
}

function OpenAutopayWindow(url)
{
    var newWin = window.open(url,"autopay","height=750,width=1000,status=yes,toolbar=yes,menubar=yes,resizable=no,scrollbars=yes,location=yes,left=50,top=0");
    newWin.focus();	   
    return false;
}