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 popUp2(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 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 popUp7(url) 
{
 var width  = 700;
 var height = 300;
 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);
}

function quoteWindow()
{
window.open('https://www.secureonlineorder.net/TechnovateLeadSystem.com/universal_quote.php?website=TPE','myquoterwindow','width=620,height=580');
}

    if (document.images) {

	t1on = new Image;	t1on.src = "http://graduatepapers.com//images/on1.gif";
	t2on = new Image;	t2on.src = "http://graduatepapers.com//images/on2.gif";
	t3on = new Image;	t3on.src = "http://graduatepapers.com//images/on3.gif";
	t4on = new Image;	t4on.src = "http://graduatepapers.com//images/on4.gif";
	t5on = new Image;	t5on.src = "http://graduatepapers.com//images/on5.gif";
	t6on = new Image;	t6on.src = "http://graduatepapers.com//images/on6.gif";
	t7on = new Image;	t7on.src = "http://graduatepapers.com//images/on7.gif";

	t1off = new Image;	t1off.src = "http://graduatepapers.com//images/off1.gif";
	t2off = new Image;	t2off.src = "http://graduatepapers.com//images/off2.gif";
	t3off = new Image;	t3off.src = "http://graduatepapers.com//images/off3.gif";
	t4off = new Image;	t4off.src = "http://graduatepapers.com//images/off4.gif";
	t5off = new Image;	t5off.src = "http://graduatepapers.com//images/off5.gif";
	t6off = new Image;	t6off.src = "http://graduatepapers.com//images/off6.gif";
	t7off = new Image;	t7off.src = "http://graduatepapers.com//images/off7.gif";
    }

    function active(imgName) {
	if (document.images) {
	imgOn = eval(imgName + "on.src");
	document [imgName].src = imgOn; }
    }

    function passive(imgName) {
	if (document.images) {
	imgOff = eval(imgName + "off.src");
	document [imgName].src = imgOff; }
    }
	
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();
}

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


function addToCart(paper_id) {
	window.location="https://www.secureonlineorder.net/tpeservices.com/?do=PshowSearch&keywords=Charles+de+Secondat%2C+Baron+de+la+Montesquieu+is+vastly+honored&x=48&y=10&SiteFrom=graduatepapers.com&PL_ID="+paper_id+"";
}


