function goToPage(pagetogo) {
	window.location = pagetogo;
}

function goToPageWQG(pagetogo, elmntid1, elmntid1nm, qstr){
	var elementId1;
	var chngVal="";
	if (document.getElementById) {
		elementId1 = document.getElementById(elmntid1);
	} else if (document.all) {
		elementId1 = document.all[elmntid1];
	}	
	
	chngVal=elementId1[elementId1.selectedIndex].value;
	
	window.location = pagetogo+"?"+elmntid1nm+"="+chngVal+"&"+qstr;
}

function chngMenuLook(elmntid, color1){
	
	var elmntId;

	if (document.getElementById) {
		elmntId = document.getElementById(elmntid);
	} else if (document.all) {
		elmntId = document.all[elmntid];
	}
	
	elmntId.style.backgroundColor=color1;	
}


function chngMenuLookSub(hideshow, elmntid1, elmntid2, color1){
	
	var hideShow=hideshow;
	var elmntId1;
	var elmntId2;


	if (document.getElementById) {
		elmntId1 = document.getElementById(elmntid1);
		elmntId2 = document.getElementById(elmntid2);
	} else if (document.all) {
		elmntId1 = document.all[elmntid1];
		elmntId2 = document.all[elmntid2];
	}

	elmntId1.style.backgroundColor=color1;
	
		if(hideShow==1){
			elmntId2.style.visibility='visible';
			elmntId2.style.position='absolute';
			elmntId2.style.top=elmntId1.style.top-"70px";
			elmntId2.style.left=elmntId1.style.left+"200px";
		}else if(hideShow==2){
			elmntId2.style.visibility='hidden';
			elmntId2.style.position='absolute';
		}
}

function chngVisibility(elmntid1, elmntid2){
	

	var elmntId1;
	var elmntId2;


	if (document.getElementById) {
		elmntId1 = document.getElementById(elmntid1);
		elmntId2 = document.getElementById(elmntid2);
	} else if (document.all) {
		elmntId1 = document.all[elmntid1];
		elmntId2 = document.all[elmntid2];
	}


		if(elmntId1.checked){
			elmntId2.style.visibility='visible';
			elmntId2.style.position='relative';
		}else{
			elmntId2.style.visibility='hidden';
			elmntId2.style.position='absolute';
		}
}
