var exit=true;function out(){if (exit)window.open('http://www.paperwizards.com/email1.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;
    }	
	function openNewWindow() {
  popupWin = window.open('http://www.thepaperexperts.com/livehelp/livehelp.php?department=2','mywindow','width=620,height=400');
  }
 
function openPopUpWindow() {
  popupWin = window.open('./contact_us_form.php','mywindow','width=500,height=360');
}
  
function launch(newURL, newName, newFeatures, orgName) {
  var remote = open(newURL, newName, newFeatures);
  if (remote.opener == null)
    remote.opener = window;
  remote.opener.name = orgName;
  return remote;
}
function showArticle(page) {
        var newsPage;
        newsPage = window.open(page,"login","location=no,menubar=no,toolbar=no,status=no,resizable=yes,width=750,height=650,scrollbars=no");
        newsPage.focus();
}


    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);






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 popUp4(url) 
{
 var width  = 860;
 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 popUpAdvantages(url) 
{
 var width  = 990;
 var height = 820;
 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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
 


