strGarantMail = "warranty@rabit.ru";
strZakazMail = "zakaz@rabit.ru";
strSupportMail = "info@rabit.ru";

function gou(El) {
  var vIndex = El.form.nav1.selectedIndex;
  var vURL = El.form.nav1.options[vIndex].value;
  window.location = vURL;
}

function AddIn(prodid,bar_code) {
	amount=document.getElementById("g"+prodid+"_"+bar_code).value;
	clien=document.getElementById("client").value;
	if(amount=="") amount=1;
	var url="pr_addinv.pl?cust="+clien+"&code="+prodid+"&quan="+amount;
	document.location=url;
}

function ch_pr() {
	var kol=document.getElementById("kol").value;
	window.open("pr_ch.pl?"+kol,"chpr","width=1,height=1");
}

function swaptable (id){
	d=document;
	if(d.getElementById('a'+id).style.display=='none')
		{d.getElementById('a'+id).style.display="block";}
	else
		{d.getElementById('a'+id).style.display="none";}
}

function infocust (cust) {
	window.open("./infocust.pl?"+cust,"cust","width=350,height=150,scrollbars=yes,resizable=yes");
}

function infodoc (no) {
	window.open("./infodoc.pl?"+no,"no","width=350,height=120");
}

function openPicture(name) {
	PicWin= open("", "pic","scrollbars=0,resizable=0,width=640,height=480,status=no,toolbar=no,menubar=no");
	PicWin.document.open();
	PicWin.document.write("<html><head><title>Ôîòî");
	PicWin.document.write("</title></head><body leftmargin=0 topmargin=0><img src='");
	PicWin.document.write(name); PicWin.document.write("' border='0'></body></html>");
	PicWin.focus();
	PicWin.document.close();
}

function openPicture2(name) {
	PicWin= open("", "pic","scrollbars=1,width=800,height=600,status=no,toolbar=no,menubar=no");
	PicWin.document.open();
	PicWin.document.write("<html><head><title>Ôîòî");
	PicWin.document.write("</title></head><body leftmargin=0 topmargin=0><img src='");
	PicWin.document.write(name); PicWin.document.write("' border='0'></body></html>");
	PicWin.focus();
	PicWin.document.close();
}

function openPicture_trade(name, title) {
	PicWin= open("", "pic","scrollbars=1,width=600,height=400,status=no,toolbar=no,menubar=no");
	PicWin.document.open();
	PicWin.document.write("<html><head><title>"+title);
	PicWin.document.write("</title></head><body leftmargin=0 topmargin=0><img src='");
	PicWin.document.write(name); PicWin.document.write("' border='0'></body></html>");
	PicWin.focus();
	PicWin.document.close();
}



function openMap(name) {
	PicWin1= open("", "pic","scrollbars=0,resizable=0,width=483,height=399,status=no,toolbar=no,menubar=no");
	PicWin1.document.open();
	PicWin1.document.write("<html><head><title>Ñõåìà ïðîåçäà");
	PicWin1.document.write("</title></head><body leftmargin=0 topmargin=0><img src='");
	PicWin1.document.write(name);
	PicWin1.document.write("' border='0'></body></html>");
	PicWin1.focus();
	PicWin1.document.close();}
	

	
	

