//jump menu 
function jumpTo(targ,sel){ 
  eval(targ+".location='"+sel.options[sel.selectedIndex].value+"'");
}

// version check and redirect for upgrade path
function vCheck(){
        app=parseInt(navigator.appVersion.charAt(0));           //checks to makes sure the user is 
		if(app<4){                                              //a 4.0 browser, sends them 
		v=location.pathname.charAt(location.pathname.length-6); //to appropriate printer page
        eval(location="compare_fm"+v+"p.html");
        }
		else return true;
}

//Sets the Standard Status throughtout the site. does not work on Mac
window.defaultStatus = "VIP Club Marbella "

//tmtC_NNresizeFix
if (document.layers) {
origWidth = innerWidth;
origHeight = innerHeight;}

function reDo() {
if (innerWidth != origWidth || innerHeight != origHeight)
location.reload();}
if (document.layers) onresize = reDo;
//tmtC_NNresizeFixEnd


//Script for Go Back button
function goBack () {
window.history.go (-1);
}

//standard pop-up
function stdPop(where,title,w,h){
	window.open(where, title, 'toolbar=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',top=100,left=100')
}


//Special Charactor Removal

function specialChar(field) {
        var re=/[*]|["]|[']/g;
		adjusted=field.value.replace(re, "");field.value=adjusted;
}


var ti='http://www.saadimarbella.com/'; 

function smartClear(formText){
	if (formText.value=='Type search words here'||formText.value=='Type article number here')formText.value=''
}
function goArtNum(){
		var num=document.artNum.num
		if (isNaN(num.value)||num.value.length!=6){
			alert('Please type the 6 digit article number.');}
//else alert('hi')
//	 else location=ti+num.value+'.html'; 
	else eval("location='"+ti+num.value+".html'")
}



<!--Begin cloak
function formCheck() {
if (document.Form.fm_used_most.options[document.Form.fm_used_most.selectedIndex].value=="") {
alert("Please answer all required questions");document.Form.fm_used_most.focus();return false
}
if (document.Form.industry_best_applies.options[document.Form.industry_best_applies.selectedIndex].value=="") {
alert("Please answer all required questions");document.Form.industry_best_applies.focus();return false
}
if (document.Form.co_primary_function.options[document.Form.co_primary_function.selectedIndex].value=="") {
alert("Please answer all required questions");document.Form.co_primary_function.focus();return false
}}
// End cloak-->

