// GoHawaiiSurvey// 04.27.2005// IMAGETEQ Technologies, Inc.// lgoldberg@imageteq.comvar amount = 5;var days = 365;	 //cookies namesvar Counter = "GoHawaiiSurveyForm_Counter";//cookies values/*  turn off site survey - 10.16.2005 lgoldberg@imageteq.comvar CounterValue = Number(ReadCookie(Counter));*/function GoHawaiiSurveyForm(){     /*  turn off site survey - 10.16.2005 lgoldberg@imageteq.com	 var Location = "GoHawaiiSurveyForm_Location";	 	 	 var LocationValue = ReadCookie(Location);	 	//Check for a cookie     	if( LocationValue != document.location )     	{		 	CreateCookie(Location, document.location, days);		 		 	CreateCookie(Counter, ++CounterValue, days); 		 	if(CounterValue == amount)				ShowSurvey();     	}//LocationValue*/}function CreateCookie(name,value,days){	var expires = "";        if (days)        {            var date = new Date();            date.setTime(date.getTime()+(days*24*60*60*1000));            expires = "; expires="+date.toGMTString();        }        document.cookie = name+"="+value+expires+"; path=/";}function ReadCookie(name){        var nameEQ = name + "=";        var ca = document.cookie.split(';');				for(var i=0;i < ca.length;i++)        {                var c = ca[i];                while (c.charAt(0)==' ') c = c.substring(1,c.length);                if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);        }        return null;}function ShowSurvey(){     		SurveyDiv = document.createElement('DIV');	PlaceGoHawaiiSurvey();	SurveyDiv.innerHTML = "<iframe  src='/survey/GoHawaiiSurveyTable.html' id='iFrId' width=672 height=523 scrolling='no' frameborder='no'></iframe></layer>"	document.body.appendChild(SurveyDiv);	}function PlaceGoHawaiiSurvey(){     	/*  turn off site survey - 10.16.2005 lgoldberg@imageteq.com	SurveyDiv.setAttribute('id', 'SurveyDivID');	SurveyDiv.style.position = 'absolute';	SurveyDiv.style.top = 50;	SurveyDiv.style.height = 600;	SurveyDiv.style.left = "" + (document.body.scrollLeft + Math.floor(document.body.clientWidth - 730)/2 + 150) + "px";	SurveyDiv.setAttribute('z-index', '5');*/}function HideSurveyDiv(){	SurveyDiv = document.getElementById('SurveyDivID');	SurveyDiv.style.display = 'none';}
