// dp function
function dp(cmd,lyr,p1) {
	if (!cmd) cmd=0; if (!lyr) lyr=0; if (!p1) p1=0;
	switch(cmd) {
		case "dp":
			if(document.getElementById)return window.top.display.document.getElementById(lyr).style;
			else if(document.all) return window.top.display.document.all[lyr].style;
			else if(document.layers) return window.top.display.document.layers[lyr];
		break;
		case "gw":
			if(document.getElementById || document.all) return parseInt(dp("dp",lyr).width);
			else if(document.layers) return parseInt(dp("dp",lyr).clip.width);
		break;
		case "gh":
			if(document.getElementById || document.all) return parseInt(dp("dp",lyr).height);
			else if(document.layers) return parseInt(dp("dp",lyr).clip.height);
		break;
		case "sw": dp("dp",lyr).width=p1; break;
		case "sh": dp("dp",lyr).height=p1; break;
		case "tx": dp("dp",lyr).left=p1; break;
		case "ty": dp("dp",lyr).top=p1; break;
		case "d": if (p1==1) dp("dp",lyr).display = "block"; else dp("dp",lyr).display = "none"; break;
		case "w":
			if(document.getElementById) window.top.display.document.getElementById(lyr).innerHTML=p1;
			else if(document.all) window.parent.display.document.all[lyr].innerHTML=p1;
			else if(document.layers) with(window.parent.display.document.layers[lyr].document) {open(); write(p1); close();}
		break;
	}
}


function go(txt) {
	alert(txt);
	window.parent.dp('w','main',txt);
}

function win(url) {
	window.open(url,"","left=50,top=50,width="+(screen.width-100)+",height="+(screen.height-200)+"status=0,toolbars=0,scrollbars=0");
}