function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,resizable=no,status=yes'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function NewWindow2(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable=no,status=yes'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function email(ahost,auser) {
	window.document.location.href = "mailto:"+auser+"@"+ahost;
}

function email2(ahost,auser,asubject) {
	window.document.location.href = "mailto:"+auser+"@"+ahost+"?subject="+asubject;
}

function reload(form) {
	var val=document.cell.type.options[document.cell.type.options.selectedIndex].value;
	var w = 400;
	var h = 300;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	myname = 'cellphones';
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable=no,status=yes';
	window.open('myphone?type='+val+'', myname, winprops);
}

function showstuff(boxid){
   document.getElementById(boxid).style.visibility="visible";
}

function hidestuff(boxid){
   document.getElementById(boxid).style.visibility="hidden";
}

function toggle_visibility(id) {
	var e = document.getElementById(id);
	if(e.style.display == 'block')
		e.style.display = 'none';
	else
		e.style.display = 'block';
}

