function openFlash() {
	window.open("Flash.htm", 'Flash', 'height=250, width=450, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, directories=no, status=yes');
}

function openPrivacy() {
	window.open("Privacy.htm", 'Privacy', 'height=250, width=450, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, directories=no, status=yes');
}

function launchPDF(file, name) {
//for flash - keep!
	window.open(file);
	VSLT(name);
}

function openSurvey() {
	window.open('Survey.aspx', 'Survey', 'height=600, width=600, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, directories=no, status=yes');
}

function showdrop(pid) {
		document.getElementById(pid).style.display = "block";
}
function hidedrop(pid, bok) {
	if (bok == 0) {
		document.getElementById(pid).style.display = "none";
	}else{
		if (event.srcElement.tagName == "DIV") {
    	   document.getElementById(pid).style.display = "none";
		//document.getElementById("ok").style.zindex = "2";    } else {
   		}
   	}
}

function getexpirydate( nodays){
	var UTCstring;
	Today = new Date();
	nomilli=Date.parse(Today);
	Today.setTime(nomilli+nodays*24*60*60*1000);
	UTCstring = Today.toUTCString();
	return UTCstring;
}

function setCookie(category,email){
	document.cookie = "Category" + "=" + category + "; path=/";
	document.cookie = "Email" + "=" + email + "; path=/";
	if(!getCookie(category)){
		return false;
	}
	else{
		parent.document.location.href("../../inquiry.htm");
	}
}

function getCookie(cookiename) {
 var cookiestring=""+document.cookie;
 var index1=cookiestring.indexOf(cookiename);
 if (index1==-1 || cookiename=="") return ""; 
 var index2=cookiestring.indexOf(';',index1);
 if (index2==-1) index2=cookiestring.length; 
 return unescape(cookiestring.substring(index1+cookiename.length+1,index2));
}

function roll_over(img_name, img_src) {
   
   document[img_name].src = img_src;
}

function roll_out(img_name, img_src) {
   
   document[img_name].src = img_src;
}

