// JavaScript Document

function openPopUpWindow() {
  popupWin = window.open('./contact_us_form.php','mywindow','width=500,height=360');
  }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



function popUp2(url) 
{
 var width  = 900;
 var height = 700;
 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 popUp3(url) 
{
 var width  = 550;
 var height = 600;
 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  = 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 popUp5(url) 
{
 var width  = 900;
 var height = 900;
 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
}

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));


try {
var pageTracker = _gat._getTracker("UA-16101485-1");
pageTracker._trackPageview();
} catch(err) {}





function openPPDetailWindow(paper_id) {
  window.open('https://www.secureonlineorder.net/tpeservices.com/?do=PshowPaperDetial&TYPE=P&Paper_ID='+paper_id+'&nomenu=TRUE','paper','width=480,height=360,scrollbars=yes');
}
function openFirst100WordWindow(paper_id,action) { 
	window.open('https://www.secureonlineorder.net/tpeservices.com/?do=PshowFirstPara&Paper_ID='+paper_id+'&nomenu=false&action='+action+'&SiteFrom=24-7-essays.com','first100word','width=650,height=400,scrollbars=yes');
}
function addToCart(paper_id) {
	window.location="https://www.secureonlineorder.net/tpeservices.com/?do=PshowSearch&keywords=Globalization+of+Hybrid+Cultures%09&x=9&y=12&SiteFrom=24-7-essays.com&PL_ID="+paper_id+"";
}
function dowanloadPaper(paper_id) {
	window.location="https://www.secureonlineorder.net/tpeservices.com/action_exe.php?do=CdoFreePrewrittenDown&PAPER_ID="+paper_id+"&SiteFrom=24-7-essays.com";
}
function dowanloadCustomerPrePaper(paper_id) {
	window.open('https://www.secureonlineorder.net/tpeservices.com/action_exe.php?do=CshowCustPaperDownloadConfirm&PAPER_ID='+paper_id+'&SiteFrom=24-7-essays.com','prepaperdownloadconfirm','width=450,height=300,scrollbars=no');
}

