var Init;
function swapURL(targ,selObj,restore)
{
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function ClearField(obj) {
	obj.value = "";
}

function ClearPWField(obj) {
	obj.value = "";
	obj.type = "password";
}



function newWindow(url)
{ 
window.open(url,'newwindow','width=750,height=550,menubar=yes,scrollbars=yes,toolbar=yes,location=yes,directories=yes,resizable=yes,top=0,left=0'); 
}


	
function openpopup(popurl){
winpops=window.open(popurl,"","width=260,height=180,top=300, left=300");
}

function openprinterfriendly(popurl){
winpops=window.open(popurl,"","width=675,height=550,scrollbars=yes,top=100, left=100");
}



// Deletes from the destination list.
function deleteFromDestList() {
var destList  = window.document.merktype.elements['destList[]'];
var len = destList.options.length;
for(var i = (len-1); i >= 0; i--) {
if ((destList.options[i] != null) && (destList.options[i].selected == true)) {
destList.options[i] = null;
	  }
   }
}


function showdiv(id){ 
if (document.getElementById){ 
obj = document.getElementById(id); 
if (obj.style.display == "none"){ 
obj.style.display = ""; 
} else { 
obj.style.display = "none"; 
} 
} 
}