function mailto(user,domain) {
	status="mailto:" + user + "@" + domain;
	locationstring = "mailto:" + user + "@" + domain;
	window.location = locationstring;
}
function getRefToDiv(divID,oDoc) {
	if( document.getElementById ) { return document.getElementById(divID); }
	if( document.all ) { return document.all[divID]; }
	if( !oDoc ) { oDoc = document; }
	if( document.layers ) {
		if( oDoc.layers[divID] ) {
			return oDoc.layers[divID];
		} else {
			for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {
				y = getRefToDiv(divID,oDoc.layers[x].document);
			}
			return y;
		}
	}
	return false;
}
function setWysiwygHeight(oName) {
	if (navigator.platform == "Win32") {
		newHeight = document.documentElement['clientHeight']-450;
		newWidth = 468;
		var myReference = getRefToDiv(oName), noPx = document.childNodes ? 'px' : 0;
		if ( myReference.style ) { 
			myReference = myReference.style;
		}
		if ( myReference.resizeTo ) { 
			myReference.resizeTo( newWidth, newHeight ); 
		}
		myReference.width = newWidth + noPx; myReference.pixelWidth = newWidth;
		myReference.height = newHeight + noPx; myReference.pixelHeight = newHeight;
	}
}
function goto(id,agree) {
	if (agree == true) {
		url = "page.php?id="+id+"&agree=true";
		window.location.href = url;
	} else {
		url = "page.php?id="+id+"&agree=false";
		window.location.href = url;
	}
	
}