// JavaScript Document /// show hide edit field function closeme() { window.parent.refreshme(); } function show_pop_message(parent_refresh_url,str) { showPopWin('_show_message.php?returl='+parent_refresh_url+'&msg='+str, 555, 120, null,false); } function show_window_paypal() { showPopWin('pleasewait.php', 555, 220, null,false); } function show_pwd_reminder_window() { showPopWin('_password_reminder.php', 750, 500, null); } function attri_radio(fieldnm,attriname) { // for radio // set var radio_choice to false var my_attri_val; var radio_choice = false; // Loop from zero to the one minus the number of radio button selections for (counter = 0; counter < fieldnm.length; counter++) { // If a radio button has been selected it will return true // (If not it will return false) if (fieldnm[counter].checked) { radio_choice = true; var my_attri_val = fieldnm[counter].getAttribute(attriname); } } return my_attri_val; /// means not selected } function attri_listbox(id,attriname) { // for listbox var selected_index = document.getElementById(id).selectedIndex; var my_attri_val = document.getElementById(id).options[selected_index].getAttribute(attriname); if( my_attri_val) { return my_attri_val; } else { return ""; } } function attri(id,attriname) { // for text box, label, textarea var my_attri_val= document.getElementById(id).getAttribute(attriname); if( my_attri_val) { return my_attri_val; } else { return ""; } } function add_main_links() { //showPopWin('_add_mainpage_link.php', 600, 300, null); window.location='_add_mainpage_link.php'; } function add_sub_links(mainid) { //showPopWin('_add_mainpage_link.php?mainid='+mainid, 400, 200, null); window.location='_add_mainpage_link.php?mainid='+mainid; } function set_id_value(sourceid,str) { document.getElementById(sourceid).value=str; } function copy_content(sourceid,targetid) { document.getElementById(targetid).value=document.getElementById(sourceid).value; } // remove blank space from value function remove_space_all(str) { var str=str; return (str.replace(/ /g, "")); } function remove_space_all(str) { var str=str; return (str.replace(/ /g, "")); } function show_edit(rowid) { var x; var rowid=rowid; // table-row or none if(document.getElementById(rowid).style.display=="none") { try { document.getElementById(rowid).style.display="table-row"; } catch(e) { document.getElementById(rowid).style.display="block"; } } else { document.getElementById(rowid).style.display="none"; } } function roundNumber(pnumber,decimals) { if (isNaN(pnumber)) { return 0}; if (pnumber=='') { return 0}; var snum = new String(pnumber); var sec = snum.split('.'); var whole = parseFloat(sec[0]); var result = ''; if(sec.length > 1){ var dec = new String(sec[1]); dec = String(parseFloat(sec[1])/Math.pow(10,(dec.length - decimals))); dec = String(whole + Math.round(parseFloat(dec))/Math.pow(10,decimals)); var dot = dec.indexOf('.'); if(dot == -1){ dec += '.'; dot = dec.indexOf('.'); } while(dec.length <= dot + decimals) { dec += '0'; } result = dec; } else{ var dot; var dec = new String(whole); dec += '.'; dot = dec.indexOf('.'); while(dec.length <= dot + decimals) { dec += '0'; } result = dec; } return result; } function roundNumber_old(number,decimal_points) { // if(!decimal_points) return Math.round(number); if(number == 0) { var decimals = ""; for(var i=0;i
Your pictures are being uploaded to our server.
Please be patient it could take some time depending on the size and number of the files.

'); } function form_upload_process_abh_old() { showprocess_new('
Please be patient ....

'); } function image_upload_process_abh() { // showPopWin('_upload_cotinue.php', 700, 220, null); // calling another file // procwindow=dhtmlmodal.open('processwindow', 'iframe', '_upload_cotinue.php', 'Please be patient', 'width=700px,height=220px,center=1,resize=0,scrolling=0'); //agewindow=dhtmlmodal.open('Process', 'div', 'modalalertdiv', 'Please be patient', 'width=700px,height=220px,left=150px,top=100px,resize=0,scrolling=0') }