// JavaScript Document


//Pop-up window

function popUp(strURL,strType,strHeight,strWidth) {
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
window.open(strURL, 'newWin', strOptions);
}


function popUpTRY(strURL,strType,strHeight,strWidth) {
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
newWindow=window.open(strURL, 'newWin', strOptions);
newWindow.document.write("<HTML><HEAD><TITLE>Pantsed Again!</TITLE></HEAD><BODY bgcolor='#FF0000' text='#000000'><DIV ALIGN='center'><BR>THIS IS A TEST<BR></DIV></BODY></HTML>")
newWindow.document.close
}

function popUpTRY2(strURL,strType,strHeight,strWidth) {
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
newWindow=window.open('', 'newWin', strOptions);
newWindow.document.write("<HTML><HEAD><TITLE>Pantsed Again!</TITLE></HEAD><BODY bgcolor='#00FF00' text='#000000'><DIV ALIGN='center'><OBJECT classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width='320' height='240' codebase='http://www.apple.com/qtactivex/qtplugin.cab'><param name='src' value="+strURL+" /><param name='autoplay' value='true' /><param name='controller' value='true' /></OBJECT><BR>THIS IS A TEST<BR></DIV></BODY></HTML>")
newWindow.document.close
}

//from: http://www.ardamis.com/2007/07/12/defeating-contact-form-spam/
function formProtect() {
	document.getElementById("formblah").setAttribute("action","6584EBC6E3760C1F4AE7ED5CDA44F0AF6F18ABBF38ABF1F93D50A12404AAD1DB.php");
}
