function popUp(url,ht,wt) {
   var ChromeProperties = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=' + ht + ',height=' + wt
   newWindow = window.open(url,"win",ChromeProperties);
   newWindow.focus();
}

function popUp3(url,ht,wt,name,scroll) {
   if (scroll == "") scroll = "0"
   var ChromeProperties = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=' + scroll + ',resizable=0,width=' + ht + ',height=' + wt
   newWindow = window.open(url,name,ChromeProperties);
   newWindow.focus();
}

function popUp4(url,ht,wt,name,scroll) {
   if (scroll == "") scroll = "0"
   var ChromeProperties = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=' + scroll + ',resizable=1,width=' + ht + ',height=' + wt
   newWindow = window.open(url,name,ChromeProperties);
   newWindow.focus();
}

function doSurveyPopup() {
   delay = 6;  
   timer = setTimeout("popUp4('http://www.joeverde.com/NSurvey/nsurvey.aspx?surveyid=5a175cd512f490a8ae30a7bafcd9496','675','400', 'ServiceSurvey',1)", delay*1000);
}

//setTimeout("window.open('http://www.DesignerWiz.com');", 10000);

//alert('this is a test');
function OpenVideoWindow(url,name) {
	var ht = screen.availHeight * .80
	var wt = screen.availWidth * .90
   var ChromeProperties = 'toolbar=1,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=' + wt + ',height=' + ht + ',left=20,top=20,screenX=20,screenY=20'
   newWindow = window.open(url,name,ChromeProperties);
   newWindow.focus();
	//newWindow.pageXOffset = 0;
	//newWindow.pageYOffset = 0;
	//newWindow.moveTo(0,0);
}




function GotoAndClose(url) {
   if (url != ""){opener.location = url;}
   window.close();
}

function SendToBack(nSeconds){
   setTimeout("self.blur()",nSeconds * 1000);
}

// page keep from being framed up
setTimeout ("changePage()", 3000);
function changePage() {
   if (self.parent.frames.length != 0)
   self.parent.location=document.location;
}

function GetMonth(intMonth){
   var MonthArray = new Array("January", "February", "March",
                              "April", "May", "June",
                              "July", "August", "September",
                              "October", "November", "December"); 
   return MonthArray[intMonth] 	  	 
}
   
function getDateStr(){
   var today = new Date();
   var year = today.getYear();
   if(year<1000) year+=1900;
   var todayStr = GetMonth(today.getMonth()) + " " + today.getDate()
   todayStr += ",&nbsp;&nbsp;" + year;
   return todayStr;
}

function AddToFavorites(url, name)	{
		window.external.AddFavorite(url, name);
		return false;
	}

