function doNothing(){
	return;	
}

function SubtractQty()
{
	
	var a = getById("prdQty");
	var Min = document.product.minQty.value
	
	if (a.value > Number(Min)){
		a.value = Number(a.value) -1;
	}
}

function AddQty()
{
	var a = getById("prdQty");
	if (a.value <1000)
		a.value = Number(a.value) + 1
}

function ValidateForm()
{

	if (getById("validate").value == "okForm")
	{
		document.product.submit()
	}
	
	
}



function getById(id)
{
	var elem;
	if (document.getElementById) // this is the way the standards work
		elem = document.getElementById(id);
	else if (document.all) // this is the way old msie versions work
		elem = document.all[id];
	else if (document.layers) // this is the way nn4 works
		elem = document.layers[id];
	return elem;
}

function ChangeLang(idLang){

	var a = document.URL;
	var aTemp = a.split("/");
	var g= String(aTemp[aTemp.length-1]);
	if (idLang == "eng"){
		if (g == "")
			a = "e_" + "index.asp";
		else{
			if (g.substr(0,2)=="s_")
				a = "e_" + g.substr(2,g.length-2);
			else
				a = "e_" + g;
		}
	}else{
		var e = g;
		var s = e.length;
		a = e.substring(2,s);
		
	}
	document.location = a;
	
}
