// function script_exp_onload() { // check_login(); // } // function check_login() { // document.getElementById('id_script_exp_login_front').style.display = "block"; var margin_tmp = ( getSize('w') / 2 ) - 350 + "px"; document.getElementById('id_script_exp_login_front').style.margin = "60px 0px 0px " + margin_tmp ; // document.getElementById('id_script_exp_login_back').style.display = "block"; var height_tmp = document.body.clientHeight + "px"; document.getElementById('id_script_exp_login_back').style.height = height_tmp; // } // function getSize(type) { var myWidth = 0, myHeight = 0; if(typeof(window.innerWidth) == 'number') { myWidth = window.innerWidth; myHeight = window.innerHeight; } else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if(document.body && (document.body.clientWidth || document.body.clientHeight)) { myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } if(type=='w') { return[myWidth]; } else if(type=='h') { return[myHeight]; } } // function setSize(type,size) { var myWidth = 0, myHeight = 0; if(typeof(window.innerWidth) == 'number') { if(type=='w') window.innerWidth = size; else if(type=='h') window.innerHeight = size; } else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { if(type=='w') document.documentElement.clientWidth = size; else if(type=='h') document.documentElement.clientHeight = size; } else if(document.body && (document.body.clientWidth || document.body.clientHeight)) { if(type=='w') document.body.clientWidth = size; else if(type=='h') document.body.clientHeight = size; } } // function submit_form(id,query) { if(confirm(query)) { document.getElementById(id).submit(); } } //