// JavaScript Document for digital-zest.com

function openPopup( windowURL, windowName, windowFeatures ) { 
    return window.open( windowURL, windowName, windowFeatures ) ; 
} 
function msgbox() {
var answer = confirm ("You have requested to Logout of our Client Lounge system !!  \n \nWould you like to logout of your account ? You will be automatically redirected to the Digital-Zest homepage. \n \nPress the OK button to continue with the logout or press the CANCEL button to stay where you are.") 
if (answer) 
	window.location="../zest_LogMeOut.asp"
	
}
function jargonLink() {
var myUrl
myUrl = "http://www.digital-zest.com/zest_jargon-glossary/site_jargonbuster-popup.asp?not="+jb
var myTarget
myTarget = "jargonBuster"
var myFeatures
myFeatures = "width=437,height=320,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1"
window.open(myUrl,myTarget,myFeatures)
}
function checkSubForm() {
    var formName = document.suggestions.name;
	var formSugest = document.suggestions.comments;
	var msg = "";
       		if (formName.value.length <= 6)
			{
			var msg = 'Surely your name is longer than SIX characters \nPlease re-enter your name and resubmit';
			alert(msg);
			formName.focus();
			formName.select();
			return false;     
			}
			if (formSugest.value.length <= 6)
			{
			var msg2 = 'You have not entered any comments or suggestions to submit to us \nPlease enter your comments and resubmit';
			alert(msg2);
			formSugest.focus();
			formSugest.select();
			return false;     
			}
			
			return true;
}
function thanksVote() {
var voteMsg = "Thank you for your vote";
alert(voteMsg);
}
// Old testing script //
//var jbString 
//jbString = "JavaScript: newWindow = openPopup( '../zest_basic_jargonbuster.asp?not="+jb+"', 'JargonBuster', 'width=437,height=320,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1' );newWindow.focus()"
//document.write(jbString)
//openPopup (jbstring)
// window.open(jbString) document.write(jbString)