<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
var us_cpm = 4.64;
var uk_cpm = 4.64;
var eu_cpm = 3.61;
var au_cpm = 3.55;
var ca_cpm = 4.43;
var na_cpm = 4.52;
var wwide_cpm = 1.58;
var nus_cpm = 4.31;
var nuk_cpm = 4.31;
var neu_cpm = 3.35;
var nau_cpm = 3.22;
var nca_cpm = 4.21;
var nna_cpm = 4.25;
var nwide_cpm = 1.31;
var mature_cpm = 3.30;
var gsu_cpm = 1.99;
var alexa_cpm = 2.99;


function IsNumeric(sText) {
   var ValidChars = "0123456789";
   var IsNumber=true;
   var Char;
    
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }
   return IsNumber;   
}

function purchaseus() {

var urlstr = document.usform.url.value;

if ((document.usform.total.value == "")) {
	document.usform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.usform.errormes.value = ""
	document.usform.visitorno.value = 1000
}

if ((document.usform.total.value != "") && (urlstr.length < 9)) {
	document.usform.errmessage.value = "Please Enter Your URL"
}

if ((document.usform.total.value != "") && (document.usform.errormes.value == "") && (urlstr.length >= 9)) {
	document.usform.submit1.disabled = true;
	document.usform.submit1.value = ".:One Moment:.";
	document.usform.amount.value = document.usform.total.value;
	document.usform.item_name.value = document.usform.visitorno.value+" Visitors "+document.usform.cat.value;
	document.usform.os0.value = document.usform.url.value;
	document.usform.submit(); 
	}
}

function us() {

document.usform.total.value = "0";
document.usform.errmessage.value = "";

var visitors = document.usform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.usform.errormes.value = "Must Be Multiples of 100"
			document.usform.total.value = "";
			document.usform.errmessage.value = "";
		}
}

if ((document.usform.visitorno.value < 1000) && (document.usform.visitorno.value != "")) {	
	document.usform.errormes.value = "Min. Order is 1000"
	document.usform.total.value = "";
	document.usform.errmessage.value = "";
}

if (document.usform.total.value != "") {
	var visitors = document.usform.visitorno.value/1000;	
    var tot = visitors * us_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.usform.errormes.value = ""
	document.usform.total.value = tot2;
		if (!IsNumeric(document.usform.visitorno.value)) {
			document.usform.errormes.value = "Amount Must Be Numberical"
			document.usform.total.value = "";
		}
	}
}


function purchasewwide() {

var urlstr = document.wwideform.url.value;

if ((document.wwideform.total.value == "")) {
	document.wwideform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.wwideform.errormes.value = ""
	document.wwideform.visitorno.value = 1000
}

if ((document.wwideform.total.value != "") && (urlstr.length < 9)) {
	document.wwideform.errmessage.value = "Please Enter Your URL"
}

if ((document.wwideform.total.value != "") && (document.wwideform.errormes.value == "") && (urlstr.length >= 9)) {
	document.wwideform.submit1.disabled = true;
	document.wwideform.submit1.value = ".:One Moment:.";
	document.wwideform.amount.value = document.wwideform.total.value;
	document.wwideform.item_name.value = document.wwideform.visitorno.value+" Visitors "+document.wwideform.cat.value;
	document.wwideform.os0.value = document.wwideform.url.value;
	document.wwideform.submit();  
    }
}

function wwide() {

document.wwideform.total.value = "0";
document.wwideform.errmessage.value = "";

var visitors = document.wwideform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.wwideform.errormes.value = "Must Be Multiples of 100"
			document.wwideform.total.value = "";
			document.wwideform.errmessage.value = "";
		}
}

if ((document.wwideform.visitorno.value < 2000) && (document.wwideform.visitorno.value != "")) {	
	document.wwideform.errormes.value = "Min. Order is 2000"
	document.wwideform.total.value = "";
	document.wwideform.errmessage.value = "";
}

if (document.wwideform.total.value != "") {
	var visitors = document.wwideform.visitorno.value/1000;
    var tot = visitors * wwide_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.wwideform.errormes.value = ""
	document.wwideform.total.value = tot2;
		if (!IsNumeric(document.wwideform.visitorno.value)) {
			document.wwideform.errormes.value = "Amount Must Be Numberical"
			document.wwideform.total.value = "";
		}
	}
}
function purchasenna() {

var urlstr = document.nnaform.url.value;

if ((document.nnaform.total.value == "")) {
	document.nnaform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.nnaform.errormes.value = ""
	document.nnaform.visitorno.value = 1000
}

if ((document.nnaform.total.value != "") && (urlstr.length < 9)) {
	document.nnaform.errmessage.value = "Please Enter Your URL"
}

if ((document.nnaform.total.value != "") && (document.nnaform.errormes.value == "") && (urlstr.length >= 9)) {
	document.nnaform.submit1.disabled = true;
	document.nnaform.submit1.value = ".:One Moment:.";
	document.nnaform.amount.value = document.nnaform.total.value;
	document.nnaform.item_name.value = document.nnaform.visitorno.value+" Visitors "+document.nnaform.cat.value;
	document.nnaform.os0.value = document.nnaform.url.value;
	document.nnaform.submit();  
    }
}

function nna() {

document.nnaform.total.value = "0";
document.nnaform.errmessage.value = "";

var visitors = document.nnaform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.nnaform.errormes.value = "Must Be Multiples of 100"
			document.nnaform.total.value = "";
			document.nnaform.errmessage.value = "";
		}
}

if ((document.nnaform.visitorno.value < 2000) && (document.nnaform.visitorno.value != "")) {	
	document.nnaform.errormes.value = "Min. Order is 2000"
	document.nnaform.total.value = "";
	document.nnaform.errmessage.value = "";
}

if (document.nnaform.total.value != "") {
	var visitors = document.nnaform.visitorno.value/1000;
    var tot = visitors * nna_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.nnaform.errormes.value = ""
	document.nnaform.total.value = tot2;
		if (!IsNumeric(document.nnaform.visitorno.value)) {
			document.nnaform.errormes.value = "Amount Must Be Numberical"
			document.nnaform.total.value = "";
		}
	}
}
function purchasenca() {

var urlstr = document.ncaform.url.value;

if ((document.ncaform.total.value == "")) {
	document.ncaform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.ncaform.errormes.value = ""
	document.ncaform.visitorno.value = 1000
}

if ((document.ncaform.total.value != "") && (urlstr.length < 9)) {
	document.ncaform.errmessage.value = "Please Enter Your URL"
}

if ((document.ncaform.total.value != "") && (document.ncaform.errormes.value == "") && (urlstr.length >= 9)) {
	document.ncaform.submit1.disabled = true;
	document.ncaform.submit1.value = ".:One Moment:.";
	document.ncaform.amount.value = document.ncaform.total.value;
	document.ncaform.item_name.value = document.ncaform.visitorno.value+" Visitors "+document.ncaform.cat.value;
	document.ncaform.os0.value = document.ncaform.url.value;
	document.ncaform.submit();  
    }
}

function nca() {

document.ncaform.total.value = "0";
document.ncaform.errmessage.value = "";

var visitors = document.ncaform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.ncaform.errormes.value = "Must Be Multiples of 100"
			document.ncaform.total.value = "";
			document.ncaform.errmessage.value = "";
		}
}

if ((document.ncaform.visitorno.value < 2000) && (document.ncaform.visitorno.value != "")) {	
	document.ncaform.errormes.value = "Min. Order is 2000"
	document.ncaform.total.value = "";
	document.ncaform.errmessage.value = "";
}

if (document.ncaform.total.value != "") {
	var visitors = document.ncaform.visitorno.value/1000;
    var tot = visitors * nca_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.ncaform.errormes.value = ""
	document.ncaform.total.value = tot2;
		if (!IsNumeric(document.ncaform.visitorno.value)) {
			document.ncaform.errormes.value = "Amount Must Be Numberical"
			document.ncaform.total.value = "";
		}
	}
}
function purchasenau() {

var urlstr = document.nauform.url.value;

if ((document.nauform.total.value == "")) {
	document.nauform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.nauform.errormes.value = ""
	document.nauform.visitorno.value = 1000
}

if ((document.nauform.total.value != "") && (urlstr.length < 9)) {
	document.nauform.errmessage.value = "Please Enter Your URL"
}

if ((document.nauform.total.value != "") && (document.nauform.errormes.value == "") && (urlstr.length >= 9)) {
	document.nauform.submit1.disabled = true;
	document.nauform.submit1.value = ".:One Moment:.";
	document.nauform.amount.value = document.nauform.total.value;
	document.nauform.item_name.value = document.nauform.visitorno.value+" Visitors "+document.nauform.cat.value;
	document.nauform.os0.value = document.nauform.url.value;
	document.nauform.submit();  
    }
}

function nau() {

document.nauform.total.value = "0";
document.nauform.errmessage.value = "";

var visitors = document.nauform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.nauform.errormes.value = "Must Be Multiples of 100"
			document.nauform.total.value = "";
			document.nauform.errmessage.value = "";
		}
}

if ((document.nauform.visitorno.value < 2000) && (document.nauform.visitorno.value != "")) {	
	document.nauform.errormes.value = "Min. Order is 2000"
	document.nauform.total.value = "";
	document.nauform.errmessage.value = "";
}

if (document.nauform.total.value != "") {
	var visitors = document.nauform.visitorno.value/1000;
    var tot = visitors * nau_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.nauform.errormes.value = ""
	document.nauform.total.value = tot2;
		if (!IsNumeric(document.nauform.visitorno.value)) {
			document.nauform.errormes.value = "Amount Must Be Numberical"
			document.nauform.total.value = "";
		}
	}
}
function purchaseneu() {

var urlstr = document.neuform.url.value;

if ((document.neuform.total.value == "")) {
	document.neuform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.neuform.errormes.value = ""
	document.neuform.visitorno.value = 1000
}

if ((document.neuform.total.value != "") && (urlstr.length < 9)) {
	document.neuform.errmessage.value = "Please Enter Your URL"
}

if ((document.neuform.total.value != "") && (document.neuform.errormes.value == "") && (urlstr.length >= 9)) {
	document.neuform.submit1.disabled = true;
	document.neuform.submit1.value = ".:One Moment:.";
	document.neuform.amount.value = document.neuform.total.value;
	document.neuform.item_name.value = document.neuform.visitorno.value+" Visitors "+document.neuform.cat.value;
	document.neuform.os0.value = document.neuform.url.value;
	document.neuform.submit();  
    }
}

function neu() {

document.neuform.total.value = "0";
document.neuform.errmessage.value = "";

var visitors = document.neuform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.neuform.errormes.value = "Must Be Multiples of 100"
			document.neuform.total.value = "";
			document.neuform.errmessage.value = "";
		}
}

if ((document.neuform.visitorno.value < 2000) && (document.neuform.visitorno.value != "")) {	
	document.neuform.errormes.value = "Min. Order is 2000"
	document.neuform.total.value = "";
	document.neuform.errmessage.value = "";
}

if (document.neuform.total.value != "") {
	var visitors = document.neuform.visitorno.value/1000;
    var tot = visitors * neu_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.neuform.errormes.value = ""
	document.neuform.total.value = tot2;
		if (!IsNumeric(document.neuform.visitorno.value)) {
			document.neuform.errormes.value = "Amount Must Be Numberical"
			document.neuform.total.value = "";
		}
	}
}

function purchasenuk() {

var urlstr = document.nukform.url.value;

if ((document.nukform.total.value == "")) {
	document.nukform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.nukform.errormes.value = ""
	document.nukform.visitorno.value = 1000
}

if ((document.nukform.total.value != "") && (urlstr.length < 9)) {
	document.nukform.errmessage.value = "Please Enter Your URL"
}

if ((document.nukform.total.value != "") && (document.nukform.errormes.value == "") && (urlstr.length >= 9)) {
	document.nukform.submit1.disabled = true;
	document.nukform.submit1.value = ".:One Moment:.";
	document.nukform.amount.value = document.nukform.total.value;
	document.nukform.item_name.value = document.nukform.visitorno.value+" Visitors "+document.nukform.cat.value;
	document.nukform.os0.value = document.nukform.url.value;
	document.nukform.submit();  
    }
}

function nuk() {

document.nukform.total.value = "0";
document.nukform.errmessage.value = "";

var visitors = document.nukform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.nukform.errormes.value = "Must Be Multiples of 100"
			document.nukform.total.value = "";
			document.nukform.errmessage.value = "";
		}
}

if ((document.nukform.visitorno.value < 2000) && (document.nukform.visitorno.value != "")) {	
	document.nukform.errormes.value = "Min. Order is 2000"
	document.nukform.total.value = "";
	document.nukform.errmessage.value = "";
}

if (document.nukform.total.value != "") {
	var visitors = document.nukform.visitorno.value/1000;
    var tot = visitors * nuk_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.nukform.errormes.value = ""
	document.nukform.total.value = tot2;
		if (!IsNumeric(document.nukform.visitorno.value)) {
			document.nukform.errormes.value = "Amount Must Be Numberical"
			document.nukform.total.value = "";
		}
	}
}
function purchasenus() {

var urlstr = document.nusform.url.value;

if ((document.nusform.total.value == "")) {
	document.nusform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.nusform.errormes.value = ""
	document.nusform.visitorno.value = 1000
}

if ((document.nusform.total.value != "") && (urlstr.length < 9)) {
	document.nusform.errmessage.value = "Please Enter Your URL"
}

if ((document.nusform.total.value != "") && (document.nusform.errormes.value == "") && (urlstr.length >= 9)) {
	document.nusform.submit1.disabled = true;
	document.nusform.submit1.value = ".:One Moment:.";
	document.nusform.amount.value = document.nusform.total.value;
	document.nusform.item_name.value = document.nusform.visitorno.value+" Visitors "+document.nusform.cat.value;
	document.nusform.os0.value = document.nusform.url.value;
	document.nusform.submit();  
    }
}

function nus() {

document.nusform.total.value = "0";
document.nusform.errmessage.value = "";

var visitors = document.nusform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.nusform.errormes.value = "Must Be Multiples of 100"
			document.nusform.total.value = "";
			document.nusform.errmessage.value = "";
		}
}

if ((document.nusform.visitorno.value < 2000) && (document.nusform.visitorno.value != "")) {	
	document.nusform.errormes.value = "Min. Order is 2000"
	document.nusform.total.value = "";
	document.nusform.errmessage.value = "";
}

if (document.nusform.total.value != "") {
	var visitors = document.nusform.visitorno.value/1000;
    var tot = visitors * nus_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.nusform.errormes.value = ""
	document.nusform.total.value = tot2;
		if (!IsNumeric(document.nusform.visitorno.value)) {
			document.nusform.errormes.value = "Amount Must Be Numberical"
			document.nusform.total.value = "";
		}
	}
}
function purchasenwide() {

var urlstr = document.nwideform.url.value;

if ((document.nwideform.total.value == "")) {
	document.nwideform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.nwideform.errormes.value = ""
	document.nwideform.visitorno.value = 1000
}

if ((document.nwideform.total.value != "") && (urlstr.length < 9)) {
	document.nwideform.errmessage.value = "Please Enter Your URL"
}

if ((document.nwideform.total.value != "") && (document.nwideform.errormes.value == "") && (urlstr.length >= 9)) {
	document.nwideform.submit1.disabled = true;
	document.nwideform.submit1.value = ".:One Moment:.";
	document.nwideform.amount.value = document.nwideform.total.value;
	document.nwideform.item_name.value = document.nwideform.visitorno.value+" Visitors "+document.nwideform.cat.value;
	document.nwideform.os0.value = document.nwideform.url.value;
	document.nwideform.submit();  
    }
}

function nwide() {

document.nwideform.total.value = "0";
document.nwideform.errmessage.value = "";

var visitors = document.nwideform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.nwideform.errormes.value = "Must Be Multiples of 100"
			document.nwideform.total.value = "";
			document.nwideform.errmessage.value = "";
		}
}

if ((document.nwideform.visitorno.value < 2000) && (document.nwideform.visitorno.value != "")) {	
	document.nwideform.errormes.value = "Min. Order is 2000"
	document.nwideform.total.value = "";
	document.nwideform.errmessage.value = "";
}

if (document.nwideform.total.value != "") {
	var visitors = document.nwideform.visitorno.value/1000;
    var tot = visitors * nwide_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.nwideform.errormes.value = ""
	document.nwideform.total.value = tot2;
		if (!IsNumeric(document.nwideform.visitorno.value)) {
			document.nwideform.errormes.value = "Amount Must Be Numberical"
			document.nwideform.total.value = "";
		}
	}
}
function purchasena() {

var urlstr = document.naform.url.value;

if ((document.naform.total.value == "")) {
	document.naform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.naform.errormes.value = ""
	document.naform.visitorno.value = 1000
}

if ((document.naform.total.value != "") && (urlstr.length < 9)) {
	document.naform.errmessage.value = "Please Enter Your URL"
}

if ((document.naform.total.value != "") && (document.naform.errormes.value == "") && (urlstr.length >= 9)) {
	document.naform.submit1.disabled = true;
	document.naform.submit1.value = ".:One Moment:.";
	document.naform.amount.value = document.naform.total.value;
	document.naform.item_name.value = document.naform.visitorno.value+" Visitors "+document.naform.cat.value;
	document.naform.os0.value = document.naform.url.value;
	document.naform.submit();  
    }
}

function na() {

document.naform.total.value = "0";
document.naform.errmessage.value = "";

var visitors = document.naform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.naform.errormes.value = "Must Be Multiples of 100"
			document.naform.total.value = "";
			document.naform.errmessage.value = "";
		}
}

if ((document.naform.visitorno.value < 2000) && (document.naform.visitorno.value != "")) {	
	document.naform.errormes.value = "Min. Order is 2000"
	document.naform.total.value = "";
	document.naform.errmessage.value = "";
}

if (document.naform.total.value != "") {
	var visitors = document.naform.visitorno.value/1000;
    var tot = visitors * na_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.naform.errormes.value = ""
	document.naform.total.value = tot2;
		if (!IsNumeric(document.naform.visitorno.value)) {
			document.naform.errormes.value = "Amount Must Be Numberical"
			document.naform.total.value = "";
		}
	}
}
function purchaseca() {

var urlstr = document.caform.url.value;

if ((document.caform.total.value == "")) {
	document.caform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.caform.errormes.value = ""
	document.caform.visitorno.value = 1000
}

if ((document.caform.total.value != "") && (urlstr.length < 9)) {
	document.caform.errmessage.value = "Please Enter Your URL"
}

if ((document.caform.total.value != "") && (document.caform.errormes.value == "") && (urlstr.length >= 9)) {
	document.caform.submit1.disabled = true;
	document.caform.submit1.value = ".:One Moment:.";
	document.caform.amount.value = document.caform.total.value;
	document.caform.item_came.value = document.caform.visitorno.value+" Visitors "+document.caform.cat.value;
	document.caform.os0.value = document.caform.url.value;
	document.caform.submit();  
    }
}

function ca() {

document.caform.total.value = "0";
document.caform.errmessage.value = "";

var visitors = document.caform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.caform.errormes.value = "Must Be Multiples of 100"
			document.caform.total.value = "";
			document.caform.errmessage.value = "";
		}
}

if ((document.caform.visitorno.value < 2000) && (document.caform.visitorno.value != "")) {	
	document.caform.errormes.value = "Min. Order is 2000"
	document.caform.total.value = "";
	document.caform.errmessage.value = "";
}

if (document.caform.total.value != "") {
	var visitors = document.caform.visitorno.value/1000;
    var tot = visitors * ca_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.caform.errormes.value = ""
	document.caform.total.value = tot2;
		if (!IsNumeric(document.caform.visitorno.value)) {
			document.caform.errormes.value = "Amount Must Be Numberical"
			document.caform.total.value = "";
		}
	}
}
function purchaseau() {

var urlstr = document.auform.url.value;

if ((document.auform.total.value == "")) {
	document.auform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.auform.errormes.value = ""
	document.auform.visitorno.value = 1000
}

if ((document.auform.total.value != "") && (urlstr.length < 9)) {
	document.auform.errmessage.value = "Please Enter Your URL"
}

if ((document.auform.total.value != "") && (document.auform.errormes.value == "") && (urlstr.length >= 9)) {
	document.auform.submit1.disabled = true;
	document.auform.submit1.value = ".:One Moment:.";
	document.auform.amount.value = document.auform.total.value;
	document.auform.item_aume.value = document.auform.visitorno.value+" Visitors "+document.auform.aut.value;
	document.auform.os0.value = document.auform.url.value;
	document.auform.submit();  
    }
}

function au() {

document.auform.total.value = "0";
document.auform.errmessage.value = "";

var visitors = document.auform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.auform.errormes.value = "Must Be Multiples of 100"
			document.auform.total.value = "";
			document.auform.errmessage.value = "";
		}
}

if ((document.auform.visitorno.value < 2000) && (document.auform.visitorno.value != "")) {	
	document.auform.errormes.value = "Min. Order is 2000"
	document.auform.total.value = "";
	document.auform.errmessage.value = "";
}

if (document.auform.total.value != "") {
	var visitors = document.auform.visitorno.value/1000;
    var tot = visitors * au_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.auform.errormes.value = ""
	document.auform.total.value = tot2;
		if (!IsNumeric(document.auform.visitorno.value)) {
			document.auform.errormes.value = "Amount Must Be Numberiaul"
			document.auform.total.value = "";
		}
	}
}
function purchaseeu() {

var urlstr = document.euform.url.value;

if ((document.euform.total.value == "")) {
	document.euform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.euform.errormes.value = ""
	document.euform.visitorno.value = 1000
}

if ((document.euform.total.value != "") && (urlstr.length < 9)) {
	document.euform.errmessage.value = "Please Enter Your URL"
}

if ((document.euform.total.value != "") && (document.euform.errormes.value == "") && (urlstr.length >= 9)) {
	document.euform.submit1.disabled = true;
	document.euform.submit1.value = ".:One Moment:.";
	document.euform.amount.value = document.euform.total.value;
	document.euform.item_eume.value = document.euform.visitorno.value+" Visitors "+document.euform.eut.value;
	document.euform.os0.value = document.euform.url.value;
	document.euform.submit();  
    }
}

function eu() {

document.euform.total.value = "0";
document.euform.errmessage.value = "";

var visitors = document.euform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.euform.errormes.value = "Must Be Multiples of 100"
			document.euform.total.value = "";
			document.euform.errmessage.value = "";
		}
}

if ((document.euform.visitorno.value < 2000) && (document.euform.visitorno.value != "")) {	
	document.euform.errormes.value = "Min. Order is 2000"
	document.euform.total.value = "";
	document.euform.errmessage.value = "";
}

if (document.euform.total.value != "") {
	var visitors = document.euform.visitorno.value/1000;
    var tot = visitors * eu_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.euform.errormes.value = ""
	document.euform.total.value = tot2;
		if (!IsNumeric(document.euform.visitorno.value)) {
			document.euform.errormes.value = "Amount Must Be Numberieul"
			document.euform.total.value = "";
		}
	}
}
function purchaseuk() {

var urlstr = document.ukform.url.value;

if ((document.ukform.total.value == "")) {
	document.ukform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.ukform.errormes.value = ""
	document.ukform.visitorno.value = 1000
}

if ((document.ukform.total.value != "") && (urlstr.length < 9)) {
	document.ukform.errmessage.value = "Please Enter Your URL"
}

if ((document.ukform.total.value != "") && (document.ukform.errormes.value == "") && (urlstr.length >= 9)) {
	document.ukform.submit1.disabled = true;
	document.ukform.submit1.value = ".:One Moment:.";
	document.ukform.amount.value = document.ukform.total.value;
	document.ukform.item_ukme.value = document.ukform.visitorno.value+" Visitors "+document.ukform.ukt.value;
	document.ukform.os0.value = document.ukform.url.value;
	document.ukform.submit();  
    }
}

function uk() {

document.ukform.total.value = "0";
document.ukform.errmessage.value = "";

var visitors = document.ukform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.ukform.errormes.value = "Must Be Multiples of 100"
			document.ukform.total.value = "";
			document.ukform.errmessage.value = "";
		}
}

if ((document.ukform.visitorno.value < 2000) && (document.ukform.visitorno.value != "")) {	
	document.ukform.errormes.value = "Min. Order is 2000"
	document.ukform.total.value = "";
	document.ukform.errmessage.value = "";
}

if (document.ukform.total.value != "") {
	var visitors = document.ukform.visitorno.value/1000;
    var tot = visitors * uk_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.ukform.errormes.value = ""
	document.ukform.total.value = tot2;
		if (!IsNumeric(document.ukform.visitorno.value)) {
			document.ukform.errormes.value = "Amount Must Be Numberiukl"
			document.ukform.total.value = "";
		}
	}
}
function purchaseus() {

var urlstr = document.usform.url.value;

if ((document.usform.total.value == "")) {
	document.usform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.usform.errormes.value = ""
	document.usform.visitorno.value = 1000
}

if ((document.usform.total.value != "") && (urlstr.length < 9)) {
	document.usform.errmessage.value = "Please Enter Your URL"
}

if ((document.usform.total.value != "") && (document.usform.errormes.value == "") && (urlstr.length >= 9)) {
	document.usform.submit1.disabled = true;
	document.usform.submit1.value = ".:One Moment:.";
	document.usform.amount.value = document.usform.total.value;
	document.usform.item_usme.value = document.usform.visitorno.value+" Visitors "+document.usform.ust.value;
	document.usform.os0.value = document.usform.url.value;
	document.usform.submit();  
    }
}

function us() {

document.usform.total.value = "0";
document.usform.errmessage.value = "";

var visitors = document.usform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.usform.errormes.value = "Must Be Multiples of 100"
			document.usform.total.value = "";
			document.usform.errmessage.value = "";
		}
}

if ((document.usform.visitorno.value < 2000) && (document.usform.visitorno.value != "")) {	
	document.usform.errormes.value = "Min. Order is 2000"
	document.usform.total.value = "";
	document.usform.errmessage.value = "";
}

if (document.usform.total.value != "") {
	var visitors = document.usform.visitorno.value/1000;
    var tot = visitors * us_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.usform.errormes.value = ""
	document.usform.total.value = tot2;
		if (!IsNumeric(document.usform.visitorno.value)) {
			document.usform.errormes.value = "Amount Must Be Numberiusl"
			document.usform.total.value = "";
		}
	}
}
function purchasemature() {

var urlstr = document.matureform.url.value;

if ((document.matureform.total.value == "")) {
	document.matureform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.matureform.errormes.value = ""
	document.wmatureform.visitorno.value = 1000
}

if ((document.matureform.total.value != "") && (urlstr.length < 9)) {
	document.matureform.errmessage.value = "Please Enter Your URL"
}

if ((document.wwideform.total.value != "") && (document.matureform.errormes.value == "") && (urlstr.length >= 9)) {
	document.matureform.submit1.disabled = true;
	document.matureform.submit1.value = ".:One Moment:.";
	document.matureform.amount.value = document.matureform.total.value;
	document.matureform.item_name.value = document.matureform.visitorno.value+" Visitors "+document.matureform.cat.value;
	document.matureform.os0.value = document.matureform.url.value;
	document.matureform.submit();  
    }
}

function mature() {

document.matureform.total.value = "0";
document.matureform.errmessage.value = "";

var visitors = document.matureform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.matureform.errormes.value = "Mmaturet Be Multiples of 100"
			document.matureform.total.value = "";
			document.matureform.errmessage.value = "";
		}
}

if ((document.matureform.visitorno.value < 2000) && (document.matureform.visitorno.value != "")) {	
	document.matureform.errormes.value = "Min. Order is 2000"
	document.matureform.total.value = "";
	document.matureform.errmessage.value = "";
}

if (document.matureform.total.value != "") {
	var visitors = document.matureform.visitorno.value/1000;
    var tot = visitors * mature_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.matureform.errormes.value = ""
	document.matureform.total.value = tot2;
		if (!IsNumeric(document.matureform.visitorno.value)) {
			document.matureform.errormes.value = "Amount Mmaturet Be Numberimaturel"
			document.matureform.total.value = "";
		}
	}
}
function purchasegsu() {


var urlstr = document.gsuform.url.value;

if ((document.gsuform.total.value == "")) {
	document.gsuform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.gsuform.errormes.value = ""
	document.wgsuform.visitorno.value = 1000
}

if ((document.gsuform.total.value != "") && (urlstr.length < 9)) {
	document.gsuform.errmessage.value = "Please Enter Your URL"
}

if ((document.wwideform.total.value != "") && (document.gsuform.errormes.value == "") && (urlstr.length >= 9)) {
	document.gsuform.submit1.disabled = true;
	document.gsuform.submit1.value = ".:One Moment:.";
	document.gsuform.amount.value = document.gsuform.total.value;
	document.gsuform.item_name.value = document.gsuform.visitorno.value+" Visitors "+document.gsuform.cat.value;
	document.gsuform.os0.value = document.gsuform.url.value;
	document.gsuform.submit();  
    }
}
function gsu() {

document.gsuform.total.value = "0";
document.gsuform.errmessage.value = "";

var visitors = document.gsuform.visitorno.value/1;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.gsuform.errormes.value = "Must Be Multiples of 100"
			document.gsuform.total.value = "";
			document.gsuform.errmessage.value = "";
		}
}

if ((document.gsuform.visitorno.value < 10) && (document.gsuform.visitorno.value != "")) {	
	document.gsuform.errormes.value = "Min. Order is 10"
	document.gsuform.total.value = "";
	document.gsuform.errmessage.value = "";
}

if (document.gsuform.total.value != "") {
	var visitors = document.gsuform.visitorno.value/1;
    var tot = visitors * gsu_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.gsuform.errormes.value = ""
	document.gsuform.total.value = tot2;
		if (!IsNumeric(document.gsuform.visitorno.value)) {
			document.gsuform.errormes.value = "Amount Must Be Numberigsul"
			document.gsuform.total.value = "";
		}
	}
}
function purchasealexa() {


var urlstr = document.alexaform.url.value;

if ((document.alexaform.total.value == "")) {
	document.alexaform.errmessage.value = "Must Enter a Valid Visitor Amount"
	document.alexaform.errormes.value = ""
	document.walexaform.visitorno.value = 1000
}

if ((document.alexaform.total.value != "") && (urlstr.length < 9)) {
	document.alexaform.errmessage.value = "Please Enter Your URL"
}

if ((document.alexaform.total.value != "") && (document.alexaform.errormes.value == "") && (urlstr.length >= 9)) {
	document.alexaform.submit1.disabled = true;
	document.alexaform.submit1.value = ".:One Moment:.";
	document.alexaform.amount.value = document.alexaform.total.value;
	document.alexaform.item_name.value = document.alexaform.visitorno.value+" Visitors "+document.alexaform.cat.value;
	document.alexaform.os0.value = document.alexaform.url.value;
	document.alexaform.submit();  
    }
}
function alexa() {

document.alexaform.total.value = "0";
document.alexaform.errmessage.value = "";

var visitors = document.alexaform.visitorno.value/1000;	
var visitorstr = visitors.toString();

if (visitorstr.indexOf(".") >= 0) {
	var visitorstrsplit = visitorstr.split(".");
		if (visitorstrsplit[1].length > 1) {
			document.alexaform.errormes.value = "Must Be Multiples of 1000"
			document.alexaform.total.value = "";
			document.alexaform.errmessage.value = "";
		}
}

if ((document.alexaform.visitorno.value < 2000) && (document.alexaform.visitorno.value != "")) {	
	document.alexaform.errormes.value = "Min. Order is 2000"
	document.alexaform.total.value = "";
	document.alexaform.errmessage.value = "";
}

if (document.alexaform.total.value != "") {
	var visitors = document.alexaform.visitorno.value/1000;
    var tot = visitors * alexa_cpm;
	var tot2 = Math.round(tot*100)/100;
	var tot2str = tot2.toString();
	var tot2search = tot2str.indexOf(".");
		if (tot2search == -1) {
			tot2 = tot2+".00"
		}else{
			var tot2split = tot2str.split(".");
			var tot2splitstr = tot2split[1].length;	
				if (tot2splitstr == 1) {
					tot2 = tot2+"0"
				}		
		}
	document.alexaform.errormes.value = ""
	document.alexaform.total.value = tot2;
		if (!IsNumeric(document.alexaform.visitorno.value)) {
			document.alexaform.errormes.value = "Amount Must Be Numberialexal"
			document.alexaform.total.value = "";
		}
	}
}
function dodemo(url) {
	url = "popunderdemo.html"
	w = screen.availWidth+1;
	h = screen.availHeight+1;
	args = "titlebar=0,toolbar=0,location=0,menubar=0,scrollbars=1,resizable=1,channelmode=0,directories=0,status=0,";
	args += "width=" + w + ",height=" + h + ",";
	args += "left=0,top=0";
	newwin_entry = window.open(url, "", args);
	newwin_entry.blur();
}
