function popUp4(url) 
{
 var width  = 700;
 var height = 740;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 	 params += ', top='+top+', left='+left;
  	 params += ', directories=no';
  	 params += ', location=no';
  	 params += ', menubar=no';
 	 params += ', resizable=yes';
 	 params += ', scrollbars=yes';
  	 params += ', status=no';
  	 params += ', toolbar=no';
  	 newwin=window.open(url,'windowname', params);
 if (window.focus) {newwin.focus()}
 return false
}


function popUp2(url) 
{
 var width  = 990;
 var height = 710;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 	 params += ', top='+top+', left='+left;
  	 params += ', directories=no';
  	 params += ', location=no';
  	 params += ', menubar=no';
 	 params += ', resizable=yes';
 	 params += ', scrollbars=yes';
  	 params += ', status=no';
  	 params += ', toolbar=no';
  	 newwin=window.open(url,'windowname', params);
 if (window.focus) {newwin.focus()}
 return false
}




function quoteWindow()
{
window.open('https://www.secureonlineorder.net/TechnovateLeadSystem.com/universal_quote.php?website=TPE','myquoterwindow','width=620,height=580');
}
function openPopUpWindow() {
  popupWin = window.open('http://www.superior-termpapers.com/contact_us_form.php','mywindow','width=500,height=360');
}

function openHelpWindow(url) { 
    window.open(url,'help','width=400,height=200,scrollbars=yes');
  }

var exit=true;
function out()
{
	if (exit)
	window.open('http://www.superior-termpapers.com/email.shtml','wnftp',"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=375,height=215");
}


    function setCookie (name, value, expires) {
        if (!expires) expires = new Date();
    	document.cookie = name + "=" + escape (value) + "; expires=" + expires.toGMTString() +  "; path=/"; 
    } 
    function parseVars() {
	var qString = unescape(top.location);
	return qString;
    }
	
    var expdate = new Date ();
    expdate.setTime (expdate.getTime() + (1000 * 60 * 60 * 24 * 31));
    var _url = parseVars();
    var _len = _url.length;
    var _hsh = _url.indexOf("#");
    if (_hsh == -1)
	var _ida = "index";
    else		
    	_ida = _url.substring(_hsh+1,_len);
    setCookie ("_name", _ida, expdate);	
