/*
    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 openVideo(video,title){document.getElementById('error').style.visibility = 'visible';document.getElementById('error').innerHTML = '<div id="error_msg"></div><div id="video_ballon"><div id="videoheader"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td class="videotitle">'+ title +'</td><td width="17"><img src="../Theme/close_video.gif" onClick="closeVideo();" style="cursor:pointer;" /></td></tr></table></div><div id="player">Please install the flash player and/or enable javascript</div></div>';flashembed("player", "../SwfObjects/flowplayer-3.0.7.swf",  {config: {
	clip:  video  ,
	plugins: {
		controlbar:null		
	}
}});}function closeVideo(){document.getElementById('error').style.visibility = 'hidden';document.getElementById('video_ballon').style.display = 'none';}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 getResolution(){var w_s = screen.width;var h_s = screen.height;myIdentifier=Math.random();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 =  '../Shared/screens.php?width='; //This is the path to the file we just finished making *var hs =  '&height='; //This is the path to the file we just finished making *xmlhttp.open('GET', file + w_s + hs + h_s  , 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('cronForm').innerHTML = content; //Change the inner content of your div to the newly retrieved content ****}}}xmlhttp.send(null) //Nullify the XMLHttpRequestreturn;}function showPic(pic,id){document.getElementById('showPic').innerHTML = '<img src="../Theme/loading_pic.gif" style="margin-top:350px;margin-left:200px;" />'; //Change the inner content of your div to the newly retrieved content ****myIdentifier=Math.random();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/showPic.php?file='; //This is the path to the file we just finished making *var pid =  '&id='; //This is the path to the file we just finished making *xmlhttp.open('GET', file + pic + pid + 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('showPic').innerHTML = content; //Change the inner content of your div to the newly retrieved content ****}}}xmlhttp.send(null) //Nullify the XMLHttpRequestreturn;}function fieldRestore(field) {field.style.borderColor = "#999999";}function askConfirmation(alert_txt){return confirm(alert_txt);}function askRestore(alert_txt){return confirm(alert_txt);}function checkGuestBookForm() {window.scrollTo(0, 0);var name = document.guestbook.name.value;var name_err_txt = document.guestbook.name_err_txt.value; var email = document.guestbook.email.value; var email_err_txt = document.guestbook.email_err_txt.value; var msg = document.guestbook.msg.value; var msg_err_txt = document.guestbook.msg_err_txt.value; var captcha = document.guestbook.captcha.value;var captcha_err_txt = document.guestbook.captcha_err_txt.value;var counterrors=0;if (!name) {openAlertLayer(name_err_txt,'err_red');SetupWindowClose(); document.guestbook.name.focus();counterrors++;return false;}if (!email) {openAlertLayer(email_err_txt,'err_red');SetupWindowClose();document.guestbook.email.focus();counterrors++;return false;}else{if (email) {apos= email.indexOf("@")dotpos= email.lastIndexOf(".")if (apos<1||dotpos-apos<2) {openAlertLayer(email_err_txt,'err_red');SetupWindowClose();document.guestbook.email.focus();counterrors++;return false;}}}if (!msg) {openAlertLayer(msg_err_txt,'err_red');SetupWindowClose(); document.guestbook.msg.focus();counterrors++;return false;}if (!captcha) {openAlertLayer(captcha_err_txt,'err_red');SetupWindowClose(); document.guestbook.captcha.focus();counterrors++;return false;}if (counterrors==0) { return true;}}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}
