var confirmMsg = 'You are going to delete'; function confirmLink(theLink, theSqlQuery) { // Confirmation is not required in the configuration file if (confirmMsg == '') { return true; } var is_confirmed = confirm(confirmMsg + ':\n' + theSqlQuery); if (is_confirmed) { theLink.href += '&is_js_confirmed=1'; } return is_confirmed; } // end of the 'confirmLink()' function function validate(){ var str_mail=document.form_email.Email.value alert_str=0; if (str_mail==""){ alert_str="You have not written down your Email address" }else{ if (str_mail.indexOf("@",0)<=0 || str_mail.indexOf(".",0)<=0){ alert_str="The Email address is not correct" } } if (document.form_email.Contact_Person.value==""){ alert_str="You have not written down your Name" } if (document.form_email.Phone_No.value==""){ alert_str="You have not written down your Telphone number" } if (alert_str!=0){ alert(alert_str); event.returnValue=false; } } function clear_check_value(){ document.form_email.Products[0].checked=false; document.form_email.Products[1].checked=false; document.form_email.Products[2].checked=false; document.form_email.Products[3].checked=false; } var preloadFlag = false; function preloadImages() { if (document.images) { preloadFlag = true; } } function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i