function bookmark() { if( window.sidebar ) { window.sidebar.addPanel("Firstclass.com.au", "http://www.firstclass.com.au", ""); } if( window.external ) { window.external.AddFavorite("http://www.firstclass.com.au","Firstclass.com.au"); } } function CurrencyPopup(QueryString) { CurrencyWindow = window.open ('', 'CurrencyWindow', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,height=170,width=600') CurrencyWindow.focus() CurrencyWindow.location.href = 'http://www.xe.com/pca/input.cgi?Template=full&'+QueryString } function popUp(URL,width,height) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=" +width+",height="+height+",left=0,top=0');"); return false; } function toggleDisplay(divid) { if( document.getElementById(divid).style.display == "none" ) { document.getElementById(divid).style.display = "block"; } else { document.getElementById(divid).style.display = "none"; } } function validate_required(field,alerttxt) { with (field) { if (value==null||value=="") {alert(alerttxt);return false} else {return true} } } function validate_form(thisform) { with (thisform) { if (validate_required(email,"Email must be filled out!")==false) {email.focus();return false} if (validate_required(phone,"Phone must be filled out!")==false) {phone.focus();return false} } } function tellafriend() { window.open('/tellafriend.php?ref=http://www.firstclass.com.au/firstclass_js.php', 'tellafriend', 'scrollbars=no,width=350,height=400'); } var date = new Date() ; var unique = date.getTime() ; var url = '38.103.63.60' ; var request_url = "http://phplive.airfare.com.au/request.php?l=mdonnici&x=1&deptid=2&page="+url ; function launch_support() { newwin = window.open( request_url, unique, 'scrollbars=no,menubar=no,resizable=0,location=no,screenX=50,screenY=100,width=450,height=350' ) ; newwin.focus() ; window.close() ; } function MM_jumpMenuGo(objId,targ,restore){ //v9.0 var selObj = null; with (document) { if (getElementById) selObj = getElementById(objId); if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } } function checkform() { if (!document.myform.addToMailList.checked) { document.myform.addToMailList.value = 'off'; } else { document.myform.addToMailList.value = 'on'; } if (document.myform.name.value == '') { alert('Please enter your name'); document.myform.name.focus(); return false; } else if (document.myform.phone.value == '') { alert('Please enter your phone number'); document.myform.phone.focus(); return false; } else if (document.myform.email.value == '') { alert('Please enter your email address'); document.myform.email.focus(); return false; } else if (document.myform.confirm_email.value == '') { alert('Please retype your email address'); document.myform.confirm_email.focus(); return false; } else if (document.myform.email.value.toLowerCase != document.myform.confirm_email.value.toLowerCase) { alert('Please Retype Email for confirmation:'); return false; } return true; } function changeTableborder() { //myPDetail = document.getElementById('product-detail')[0]; myPDetail = document.getElementsByTagName('body')[0]; mytable = myPDetail.getElementsByTagName('table')[0]; $attrborder = mytable.getAttribute("border"); alert($attrborder); } //changeTableborder();