// JavaScript Document
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function dis1() {
if(document.getElementById) document.getElementById("Pub2").style.visibility = "hidden";
}

function aff1() {
if(document.getElementById) document.getElementById("Pub2").style.visibility = "visible";
}

function dis2() {
if(document.getElementById) document.getElementById("Pub1").style.visibility = "hidden";
}

function GetValue(Name) {
	url = document.URL;
	pos = url.indexOf("&" + Name + "=");
	if (pos == -1)
		pos = url.indexOf("?" + Name + "=");
	if (pos == -1)
		return "";
		pos += Name.length+2;
		pos2 = url.indexOf("&",pos);
	if (pos2 == -1)
		pos2 = url.length;
	return url.substring(pos,pos2);
}

function gigi() {
	location.href = "http://people.scody.net/shop/altromondonet/categories.aspx" + GetValue('lng') + "&cur=" + GetValue('cur') + "&cid=" + GetValue('cid');
}

function validate_form (theForm) {
    theForm.submitbtn.disabled=true;
    theForm.btn_reset.disabled=true;
    return true;
}