function openWindow(url, type, width, height, winName) {
	var paramStr="";
	if (type=="console") {
		paramStr="resizable,height="+height+",width="+width;
	} else if (type=="econsole") {
		paramStr="resizable,scrollbars,height="+height+",width="+width;
	} else if (type=="fixed") {
		paramStr="status,height="+height+",width="+width;
	} else if (type=="elastic") {
		paramStr="toolbar,menubar,scrollbars,"+"resizable,location,height="+height+",width="+width;
	}
	if(!winName) {
		winName = ('myWin_'+url.substr(0,url.indexOf("."))).replace(/[\/\\]/g,'_');
	}
	winObj = window.open(url, winName, paramStr);
	winObj.focus();
}

function openContact() {
	openWindow( 'http://www.bluemarmot.com/contact.php?ws=mc', 'console', '350', '475', 'contactWin' );
}
function openPrivacy(from)
{
	privacyWin=window.open('http://www.bluemarmot.com/privacy.phtml?ws=mc','privacy','width=450,height=500,scrollbars=1,resizable=1');
	privacyWin.focus();
}
function openAbout(from)
{
	contactWin=window.open('http://www.bluemarmot.com/about.phtml?ws='+from,'about','width=450,height=500,scrollbars=1,resizable=1');
	contactWin.focus();
}
function init_p() {
	if (document.all)
		document.onmousedown=disableclick
	else if (document.getElementById)
		document.onmouseup=disableclick
	else if (document.layers)
		document.images[PIMG].onmousedown=disableclick;
}

function GoT(obj,a) {
	location.href = obj.href+'?'+a;
}
function GoT2(a) {
	location.href = a;
}

function get_terms(l) {
	var str = 'This module, design, and code is protected under United States and International copyright laws. You are not allowed to remove any of the links pointing back to MoonConnection.com. The text link (i.e., "'+l+'") at the bottom of the module MUST remain unaltered. All  copyright notices embedded in the HTML and Javascript code must remain unchanged. Also, this module may not be used on websites that have any of the following content: pornography/adult, excessive profanity, racial intolerance, illicit drugs, hacking/cracking, or any other content that promotes illegal activity. By using this module, you are stating your acceptance of these Terms';
	return str;
}