function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	if (imageType == "swf"){
	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}else{
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function opn()
{
      sexyvis=window.open('http://www.buttsnextdoor.com'
      ,'_sexy','resizable=yes,scrollbars=yes,toolbar=yes,location=yes,directories=yes,status=no,menubar=yes');
     sexyvis.blur();

} 

<!-- Browser Check -->
iens6=document.all||document.getElementById
ns4=document.layers

<!--GLOBAL SCROLLER VARIABLES-->

var scrollspeed = 10 <!-- scrollspeed, lower is faster -->

var step=10
var contentobj
var contentheight
var theobj
var theheight
var thename
var thecontainer
var theScroller
var timerup
var timerdown
var timerupname
var timerdownname
<!--END GLOBAL SCROLLER VARIABLES-->

<!--GLOBAL SCROLLER FUNCTIONS-->
function director(incomingScroller,theFunction) {
stopall()
theScroller=incomingScroller
theobj = "contentobj"+theScroller
theheight = "contentheight"+theScroller
if(iens6){
	thename = "content"+theScroller
	theobj=document.getElementById? document.getElementById(thename):document.all.thename
	theheight=theobj.offsetHeight
	if (document.getElementById&&!document.all){
   		step=5
	}
}else if(ns4){
	thename = "nscontent"+theScroller
	thecontainer = "nscontainer"+theScroller
	theobj = eval("document."+thecontainer+".document."+thename)
	theheight=theobj.clip.height
}
	if(theFunction=="sd") {
		timerdown="window.down"+theScroller
		timerdownname="down"+theScroller
		scrolldown()
	}else if(theFunction=="su") {
		timerup="window.up"+theScroller
		timerupname="up"+theScroller
		scrollup()
	}else if(theFunction=="sa") {
		stopall()
	}else if(theFunction=="st") {
		shifttotop()
	}
}
<!-- scroll down function -->
function scrolldown() {

	if(theScroller=="1") {
	  if(iens6&&parseInt(theobj.style.top)>=(theheight*(-1)+400)){
  		  theobj.style.top=parseInt(theobj.style.top)-step
 	  }else if(ns4&&theobj.top>=(theheight*(-1)+100)){
		  theobj.top-=step
	  }
	}else if(theScroller=="2") {
	  if(iens6&&parseInt(theobj.style.top)>=(theheight*(-1)+600)){
  		  theobj.style.top=parseInt(theobj.style.top)-step
 	  }else if(ns4&&theobj.top>=(theheight*(-1)+100)){
		  theobj.top-=step
	  }
	}else if(theScroller=="3") {
	  if(iens6&&parseInt(theobj.style.top)>=(theheight*(-1)+600)){
  		  theobj.style.top=parseInt(theobj.style.top)-step
 	  }else if(ns4&&theobj.top>=(theheight*(-1)+100)){
		  theobj.top-=step
	  }
	}

	timerdownname = setTimeout("scrolldown()",scrollspeed)
}
<!-- scroll up function -->
function scrollup() {
	if(theScroller=="1") {
     	if(iens6&&parseInt(theobj.style.top)<=0){
	    	theobj.style.top=parseInt(theobj.style.top)+(step-3)
	    }else if(ns4&&theobj.top<=0){ 
		    theobj.top+=step
	    }
	}else {
	    if(iens6&&parseInt(theobj.style.top)<=0){
		    theobj.style.top=parseInt(theobj.style.top)+step
	    }else if(ns4&&theobj.top<=0){ 
		    theobj.top+=step
	    }
	}
	timerupname = setTimeout("scrollup()",scrollspeed)	
}
<!-- function to stop all scroll timers -->
function stopall() {
	if(timerup){
		clearTimeout(timerupname)
	}
	if(timerdown){
		clearTimeout(timerdownname)
	}
}
<!-- function that shifts the object to top -->
function shifttotop(){
	stopall()
	if (iens6) {
		theobj.style.top=0
	}else{
		theobj.top=0
	}
}

<!--END GLOBAL SCROLLER FUNCTIONS-->


<!-- ############################################################################### -->
<!-- ############################################################################### -->

function StartRotatePhoto()
{
   CalendarRotate(1);
}

function CalendarRotate(value)
{  
   var randomnum2 = Math.floor((Math.random() * 12)) + 1; //randomnum = 1;

   var Calendarhold = "<img src='images/Calendar07/Calendar" + randomnum2 + ".jpg" + "' width='192' height='300'>";
   document.getElementById('Calendar').innerHTML = Calendarhold;
   
   if (value == 1) 
   {
   	  CalendarRotate(2);
   }
   else
   { 
   	  t=setTimeout("CalendarRotate(2)",4000); 
   }
}


<!-- ############################################################################### -->
<!-- ############################################################################### -->


<!-- ############################################################################### -->

var goodSubmit;
function confirmSubmitVideo()
{
   goodSubmit=true;

   return goodSubmit;
}

<!-- ############################################################################### -->
<!-- ############################################################################### -->

var emailgood=true;
var verifygood=true;
var phonegood=true;
var zipcodegood=true;
var otherfieldsgood=true;
var invalidemail = "Invalid Email Address";
var invalidverify = "Failed Email Verification";
var invalidphone = "Invalid Phone Number";
var invalidzipcode = "Invalid Zip Code";
var invalidentry = "Complete Required Item";
var errormessage = "Please Fix Error Indicated Above";
var errorcount = 0;

<!-- ############################################################################### -->
<!-- ############################################################################### -->

function checkemail(eemail,vemail){

   var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

   eemail.value = eemail.value.toLowerCase();
   vemail.value = vemail.value.toLowerCase();
   
   if (filter.test(eemail.value))
   {
      emailgood=true;
      clearErrorMessage('emessage');
      
      if (vemail.value != "")
      {
      	  verifyemail(eemail,vemail);
      }
   }
   else
   {
      submitErrorMessage('emessage',invalidemail);
      emailgood=false;
   }
    return (emailgood);
}

<!-- ############################################################################### -->

function verifyemail(eemail,vemail)
{
   var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

   eemail.value = eemail.value.toLowerCase();
   vemail.value = vemail.value.toLowerCase();

   if (filter.test(vemail.value))
   {
	    if (eemail.value == vemail.value)
	    {
         verifygood=true;
         clearErrorMessage('vmessage');
	    }
	    else
	  	{
         submitErrorMessage('vmessage',invalidverify);
         verifygood=false;
	    }
	 }
	 else
	 {
      submitErrorMessage('vmessage',invalidemail);
      emailgood=false;
	 }
   return (verifygood);
}

<!-- ############################################################################### -->

function checkPhone(phone)
{
   var filter = /^\s*\(?\d{3}\)?[\-\ ]?\d{3}[\-\ ]?\d{4}\s*$/;
   var phoneLn = phone.value.length;
   var phoneDigit;
   var phoneString ="";
   var app =  document.getElementById("modelApp");
  
   if (filter.test(phone.value))
   {
      phonegood=true;
      clearErrorMessage('pmessage');
      
      for (var i=0; i<phoneLn; i++)
      {
      	 phoneDigit = parseInt(phone.value.substr(i,1));

         if (phoneDigit <= 9)      	 
         {
      	 	  phoneString += phoneDigit.toString();
      	 } 
      }
      
      app.phone.value = "(" + phoneString.substr(0,3) + ") " + phoneString.substr(3,3) + "-" + phoneString.substr(6,4);
   }
   else
   {
      submitErrorMessage('pmessage',invalidphone);
      phonegood=false;
   }
    return (phonegood);
}

<!-- ############################################################################### -->

function checkZipCode(zipcode)
{
   var filter = /^\d{5}(\-\d{4})?$/;

   if (filter.test(zipcode.value))
   {
      zipcodegood=true;
      clearErrorMessage('zmessage');
   }
   else
   {
      submitErrorMessage('zmessage',invalidzipcode);
      zipcodegood=false;
   }
    return (zipcodegood);
}


<!-- ############################################################################### -->

function clearErrorMessage(messageArea)
{
	document.getElementById(messageArea).innerHTML= "";

  if ((emailgood) && (verifygood) && (phonegood) && (zipcodegood) && (otherfieldsgood)) 
  {
  	  document.getElementById('erroralert').innerHTML= ""; 
  }
}

<!-- ############################################################################### -->

function submitErrorMessage(messageArea,message)
{
     document.getElementById(messageArea).innerHTML= message;
     document.getElementById(messageArea).style.color="red";

     document.getElementById('erroralert').innerHTML= errormessage;
     document.getElementById('erroralert').style.color="red";
}


<!-- ############################################################################### -->
<!-- ############################################################################### -->

function checkContactOtherFields()
{
   var app =  document.getElementById("contactApp");
   
   otherfieldsgood=true;
   
   if (app.firstname.value =="")   {otherfieldsgood=false; submitErrorMessage('firstnamem',invalidentry);} else {clearErrorMessage('firstnamem');}
   if (app.lastname.value =="")    {otherfieldsgood=false; submitErrorMessage('lastnamem',invalidentry);}  else {clearErrorMessage('lastnamem');}
   if (app.email.value =="")       {otherfieldsgood=false; submitErrorMessage('emessage',invalidentry);}   else {checkemail(app.email,app.emailverify);}
   if (app.emailverify.value =="") {otherfieldsgood=false; submitErrorMessage('vmessage',invalidentry);}   else {verifyemail(app.email,app.emailverify);}
   if (app.phone.value =="")       {otherfieldsgood=false; submitErrorMessage('pmessage',invalidentry);}   else {checkPhone(app.phone);}
   if (app.address.value =="")     {otherfieldsgood=false; submitErrorMessage('addressm',invalidentry);}   else {clearErrorMessage('addressm');}
   if (app.city.value =="")        {otherfieldsgood=false; submitErrorMessage('citym',invalidentry);}      else {clearErrorMessage('citym');}
   if (app.state.value =="")       {otherfieldsgood=false; submitErrorMessage('statem',invalidentry);}     else {clearErrorMessage('statem');}
   if (app.zipcode.value =="")     {otherfieldsgood=false; submitErrorMessage('zmessage',invalidentry);}   else {checkZipCode(app.zipcode);}
   if (app.country.value =="")     {otherfieldsgood=false; submitErrorMessage('countrym',invalidentry);}   else {clearErrorMessage('countrym');}

}

<!-- ############################################################################### -->

var goodSubmit;
function confirmContactSubmit()
{
	//idform = document.modelapp;
	
	checkContactOtherFields();
	
  if ((emailgood) && (verifygood) && (phonegood) && (zipcodegood) && (otherfieldsgood)) 
	{
	   goodSubmit=true;
     //idform.submit();
	}
	else
	{
		 goodSubmit=false;
	}
  return goodSubmit;
}

