/*
    Front-End Javascript
	This file is generated automatically, please don't edit
*/function alertMessage(message){alert(message);}function jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");if (restore) selObj.selectedIndex=0;}function openAlertLayer(msg,icon){document.getElementById('error').style.visibility = 'visible';document.getElementById('error').innerHTML = '<div id="error_msg"></div><div id="error_ballon"><span class="error_icon"><img src="../Theme/'+icon+'.png" /></span><span class="alert_texts_small">'+msg+'</span></div>';}function openUploadLayer(msg){document.getElementById('error').style.visibility = 'visible';document.getElementById('error').innerHTML = '<div id="error_msg"></div><div id="error_ballon"><span class="upload_icon"><img src="../Theme/uploadbar.gif" /></span><span class="uploadtxt">'+msg+'</span></div>';}function closeAlertLayer(){document.getElementById('error').style.visibility = 'hidden';}function SetupWindowClose(){window.setTimeout("closeAlertLayer()",3*1000);}function expandAdminBar(){document.getElementById('admin_bar').style.height = '100px';document.getElementById('admin_tool_bar').style.visibility = 'visible';}function showPic(id,div){document.getElementById(div+'_img').innerHTML = '<img src="../Theme/loading.gif" style="margin-top:5px;" />'; //Change the inner content of your div to the newly retrieved content ****var xmlhttp=false; //Clear our fetching variabletry {xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…} catch (e) { try {xmlhttp = newActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object} catch (E) {xmlhttp = false;}}if (!xmlhttp && typeof XMLHttpRequest!='undefined') {xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest}var file =  '../FrontEnd/configurator_images.php?id='; //This is the path to the file we just finished making *xmlhttp.open('GET', file + id, true); //Open the file through GET, and add the page we want to retrieve as a GET variable ** xmlhttp.onreadystatechange=function() {if (xmlhttp.readyState==4) { //Check if it is ready to recieve datavar content = xmlhttp.responseText; //The content data which has been retrieved ***if( content ){ //Make sure there is something in the content variabledocument.getElementById(div+'_img').innerHTML = content; //Change the inner content of your div to the newly retrieved content ****} }}xmlhttp.send(null) //Nullify the XMLHttpRequestreturn;}function showPrice(id,div){var xmlhttp=false; //Clear our fetching variabletry {xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…} catch (e) { try {xmlhttp = newActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object} catch (E) {xmlhttp = false;}}if (!xmlhttp && typeof XMLHttpRequest!='undefined') {xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest}var file =  '../FrontEnd/configurator_prices.php?id='; //This is the path to the file we just finished making *var element =  '&element='; //This is the path to the file we just finished making *xmlhttp.open('GET', file + id + element + div, true); //Open the file through GET, and add the page we want to retrieve as a GET variable ** xmlhttp.onreadystatechange=function() {if (xmlhttp.readyState==4) { //Check if it is ready to recieve datavar content = xmlhttp.responseText; //The content data which has been retrieved ***if( content ){ //Make sure there is something in the content variabledocument.getElementById(div+'_price').innerHTML = content; //Change the inner content of your div to the newly retrieved content ****} }}xmlhttp.send(null) //Nullify the XMLHttpRequestreturn;}function showTotal(rand){var xmlhttp=false; //Clear our fetching variabletry {xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…} catch (e) { try {xmlhttp = newActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object} catch (E) {xmlhttp = false;}}if (!xmlhttp && typeof XMLHttpRequest!='undefined') {xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest}var file =  '../FrontEnd/configurator_total.php?x='; //This is the path to the file we just finished making *xmlhttp.open('GET', file + rand, true); //Open the file through GET, and add the page we want to retrieve as a GET variable ** xmlhttp.onreadystatechange=function() {if (xmlhttp.readyState==4) { //Check if it is ready to recieve datavar content = xmlhttp.responseText; //The content data which has been retrieved ***if( content ){ //Make sure there is something in the content variabledocument.getElementById('total').innerHTML = content; //Change the inner content of your div to the newly retrieved content ****} }}xmlhttp.send(null) //Nullify the XMLHttpRequestreturn;}function checkConfigurator(){window.scrollTo(0, 0);var err_txt_1 = document.configurator.error_text_1.value;var radioSelected = false;for (i = 0;  i < configurator.platf.length;  i++){if (configurator.platf[i].checked)radioSelected = true;}if (!radioSelected){openAlertLayer(err_txt_1,'err_red');SetupWindowClose(); return (false);}}function fieldRestore(field) {field.style.borderColor = "#dbdbdb";}function askConfirmation(alert_txt){return confirm(alert_txt);}function askRestore(alert_txt){return confirm(alert_txt);}function checkDeleteMultiple(){window.scrollTo(0, 0);var err_txt_1 = document.frm_delete.error_text_1.value; var err_txt_2 = document.frm_delete.error_text_2.value; var check = false;for (i = 0;  i < frm_delete.checkbox.length;  i++){if (frm_delete.checkbox[i].checked)return confirm(err_txt_1);}if (!check){openAlertLayer(err_txt_2,'err_red');SetupWindowClose(); return (false);}}function toogleAll(checkname, exby) {for (i = 0; i < checkname.length; i++)checkname[i].checked = exby.checked? true:false}
