﻿

// -----------------------------------------------------------------------------
//   PRVENT OTHERS FROM INCLUDING THIS SITE // NO FRAMES
// -----------------------------------------------------------------------------

if (window!=top){top.location.href=location.href;}




// -----------------------------------------------------------------------------
//   CGI SCRIPT.NET RECOMMEND SCRIPT
// -----------------------------------------------------------------------------

function ShowRecommend(){
var rndURL = (1000*Math.random());
var url = "http://www.dorm-room-posters.com/cgi-script/csRecommend/csRecommend.cgi?command=showrecommend&page="+escape(window.location);
h=500;
w=500;
newWindow = window.open(url,'search','width='+w+',height='+h+',top='+(screen.height-h)/2+',left='+(screen.width-w)/2+',location=0,directories=0,status=no,menuBar=no,scrollBars=no,resizable=no');
newWindow.focus();
}




// -----------------------------------------------------------------------------
//    DISPLAY STATUS
// -----------------------------------------------------------------------------

function displayStatusMsg(msgStr) { //v1.0
	status=msgStr;
	document.returnValue = true;
}



// -----------------------------------------------------------------------------
//   PULL DOWN MENU NAVIGATION
// -----------------------------------------------------------------------------

function menu_goto( menuform )
{
    var baseurl = "http://www.kristofcreative.com" ;
    selecteditem = menuform.newurl.selectedIndex ;
    newurl = menuform.newurl.options[ selecteditem ].value ;
    if (newurl.length != 0) {
      location.href = baseurl + newurl ;
    }
}



// -----------------------------------------------------------------------------
//   REDIRECT TO PARENT WINDOW
// -----------------------------------------------------------------------------

	function gotoParent(url) {
		if (!opener || opener.closed) {
			newWindow = window.open(url,"newWindow")
		} else {
			opener.location = url
			opener.focus()
		}
	}




// -----------------------------------------------------------------------------
//    RELOADS WINDOW IF NAV4 RESIZED
// -----------------------------------------------------------------------------

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);










