var selected_button = 'datacash'; function setParentElementHeight(element_name,height) { document.getElementById('div_overlay').style.height = height+"px"; } function fnWaitingListConfirmation() { selected_button = 'paypal'; document.thisForm1.action = "/common/SetExpressCheckout.php"; document.thisForm1.submit(); } function fnConfirmation() { selected_button = 'paypal'; document.frmPackage.action = "/common/SetExpressCheckout.php"; document.frmPackage.submit(); } function fnTrailConfirmation() { selected_button = 'paypal'; document.frmPackage.action1.value = "paypal_trial_membership"; document.frmPackage.action = "/core/trial_membership.html"; document.frmPackage.submit(); } function fnEventConfirmation() { selected_button = 'paypal'; document.formSubmitBooking.action = "/common/SetExpressCheckout.php"; document.formSubmitBooking.submit(); } function fnEventWaitingListConfirmation() { selected_button = 'paypal'; document.thisForm1.action = "/common/SetExpressCheckout.php"; document.thisForm1.submit(); } function fnEventFriendConfirmation() { selected_button = 'paypal'; document.thisForm1.action = "/common/SetExpressCheckout.php"; document.thisForm1.submit(); } function fnPremiumPlusOffer() { document.frmPackage.action = "/common/SetExpressCheckout.php"; document.frmPackage.submit(); } function setParentElementHeight(element_name,height) { document.getElementById('div_overlay').style.height = height+"px"; } function fnShowFavAlert(favuserid,type,alreadyinfav) { var d = new Date(); var rand = d.getTime() if (type == 'fav') { url = "mode=mine&action=add&favid="+favuserid+"&rand="+rand; } else { url = "mode=mine&action=add&winkid="+favuserid+"&rand="+rand; } var ajaxRequest; var result; var newOption; try { ajaxRequest = new XMLHttpRequest(); } catch (e) { try { ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support ajax!"); return false; } } } ajaxRequest.onreadystatechange = function() { if (ajaxRequest.readyState == 4) { result = ajaxRequest.responseText; string = result.split("##"); //remove the previous items //alert(result); if (string[0] == 'success') { document.getElementById("div_fav_on1").style.display = "none"; document.getElementById("div_fav_off1").style.display = ""; document.getElementById("div_wink_on1").style.display = "none"; document.getElementById("div_wink_off1").style.display = ""; document.getElementById("div_fav_on2").style.display = "none"; document.getElementById("div_fav_off2").style.display = ""; document.getElementById("div_wink_on2").style.display = "none"; document.getElementById("div_wink_off2").style.display = ""; alert(string[1]); } else { if (alreadyinfav == 1) { var str= ""; str = "
"; str += "
"; str += ""; str += ""; str += "
This user is already in your favourites
"; str += "
"; str += "
"; OpenDivOverlay(str); } else { document.getElementById("div_fav_off1").style.display = ""; document.getElementById("div_fav_on1").style.display = "none"; document.getElementById("div_wink_on1").style.display = "none"; document.getElementById("div_wink_off1").style.display = ""; document.getElementById("div_fav_on2").style.display = "none"; document.getElementById("div_fav_off2").style.display = ""; document.getElementById("div_wink_on2").style.display = "none"; document.getElementById("div_wink_off2").style.display = ""; var str= ""; str = "
"; str += "
"; str += ""; str += ""; str += "
"+string[1]+"
"; str += "
"; str += "
"; OpenDivOverlay(str); } } } } ajaxRequest.open("GET","/core/favourites_update.php?"+url, true); ajaxRequest.send(null); } function fnAddFav(favuserid,type) { var d = new Date(); var rand = d.getTime(); if (type == 'fav') { url = "mode=mine&action=add&favid="+favuserid+"&rand="+rand; } else { url = "mode=mine&action=add&winkid="+favuserid+"&rand="+rand; } var ajaxRequest; var result; var newOption; try { ajaxRequest = new XMLHttpRequest(); } catch (e) { try { ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support ajax!"); return false; } } } ajaxRequest.onreadystatechange = function() { if (ajaxRequest.readyState == 4) { result = ajaxRequest.responseText; string = result.split("##"); //remove the previous items //alert(result); if (string[0] == 'success') { document.getElementById("div_fav_on1").style.display = "none"; document.getElementById("div_fav_off1").style.display = ""; document.getElementById("div_wink_on1").style.display = "none"; document.getElementById("div_wink_off1").style.display = ""; document.getElementById("div_fav_on2").style.display = "none"; document.getElementById("div_fav_off2").style.display = ""; document.getElementById("div_wink_on2").style.display = "none"; document.getElementById("div_wink_off2").style.display = ""; alert(string[1]); } else { document.getElementById("div_fav_off1").style.display = ""; document.getElementById("div_fav_on1").style.display = "none"; document.getElementById("div_wink_on1").style.display = "none"; document.getElementById("div_wink_off1").style.display = ""; document.getElementById("div_fav_on2").style.display = "none"; document.getElementById("div_fav_off2").style.display = ""; document.getElementById("div_wink_on2").style.display = "none"; document.getElementById("div_wink_off2").style.display = ""; var str= ""; str = "
"; str += "
"; str += ""; str += ""; str += "
"+string[1]+"
"; str += "
"; str += "
"; OpenDivOverlay(str); } } } ajaxRequest.open("GET","/core/favourites_update.php?"+url, true); ajaxRequest.send(null); } function Set_Cookie( name, value, expires, path, domain, secure ) { // set time, it's in milliseconds var today = new Date(); today.setTime( today.getTime() ); /* if the expires variable is set, make the correct expires time, the current script below will set it for x number of days, to make it for hours, delete * 24, for minutes, delete * 60 * 24 */ if ( expires ) { expires = expires * 1000 * 60 * 60 * 24; } var expires_date = new Date( today.getTime() + (expires) ); document.cookie = name + "=" +escape( value ) + ( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + ( ( path ) ? ";path=" + path : "" ) + ( ( domain ) ? ";domain=" + domain : "" ) + ( ( secure ) ? ";secure" : "" ); } // this fixes an issue with the old method, ambiguous values // with this test document.cookie.indexOf( name + "=" ); function Get_Cookie( check_name ) { // first we'll split this cookie up into name/value pairs // note: document.cookie only returns name=value, not the other components var a_all_cookies = document.cookie.split( ';' ); var a_temp_cookie = ''; var cookie_name = ''; var cookie_value = ''; var b_cookie_found = false; // set boolean t/f default f for ( i = 0; i < a_all_cookies.length; i++ ) { // now we'll split apart each name=value pair a_temp_cookie = a_all_cookies[i].split( '=' ); // and trim left/right whitespace while we're at it cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, ''); // if the extracted name matches passed check_name if ( cookie_name == check_name ) { b_cookie_found = true; // we need to handle case where cookie has no value but exists (no = sign, that is): if ( a_temp_cookie.length > 1 ) { cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') ); } // note that in cases where cookie is initialized but no value, null is returned return cookie_value; break; } a_temp_cookie = null; cookie_name = ''; } if ( !b_cookie_found ) { return null; } } // this function gets the cookie, if it exists // don't use this, it's weak and does not handle some cases // correctly, this is just to maintain legacy information function Get_Cookie( name ) { var start = document.cookie.indexOf( name + "=" ); var len = start + name.length + 1; if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) { return null; } if ( start == -1 ) return null; var end = document.cookie.indexOf( ";", len ); if ( end == -1 ) end = document.cookie.length; return unescape( document.cookie.substring( len, end ) ); } // this deletes the cookie when called function Delete_Cookie( name, path, domain ) { if ( Get_Cookie( name ) ) document.cookie = name + "=" + ( ( path ) ? ";path=" + path : "") + ( ( domain ) ? ";domain=" + domain : "" ) + ";expires=Thu, 01-Jan-1970 00:00:01 GMT"; } function fnCheckCookieEnabled() { // remember, these are the possible parameters for Set_Cookie: // name, value, expires, path, domain, secure Set_Cookie( 'test', 'none', '', '/', '', '' ); // if Get_Cookie succeeds, cookies are enabled, since //the cookie was successfully created. if ( Get_Cookie( 'test' ) ) { Delete_Cookie('test', '/', ''); return true; } else { cookie_set = false; var str= ""; str = "
"; str += "
"; str += ""; str += ""; str += "
Cookies are currently blocked (disabled) for this site. Please change your settings to enable cookies and try again.
  
"; str += "
"; str += "
"; OpenDivOverlay(str); return false; } } function ShowLoginPopup() { // remember, these are the possible parameters for Set_Cookie: // name, value, expires, path, domain, secure Set_Cookie( 'test', 'none', '', '/', '', '' ); // if Get_Cookie succeeds, cookies are enabled, since //the cookie was successfully created. if ( Get_Cookie( 'test' ) ) { Delete_Cookie('test', '/', ''); var str= ""; str = '
'; str += '
'; str += ''; str += ''; str += ''; str += ''; str += ''; str += ''; str += ''; str += '
Email  
Password
'; str += ''; str += '
'; str += '
'; OpenDivOverlay(str); } // if the Get_Cookie test fails, cookies //are not enabled for this session. else { cookie_set = false; var str= ""; str = "
"; str += "
"; str += ""; str += ""; str += "
Cookies are currently blocked (disabled) for this site. Please change your settings to enable cookies and try again.
  
"; str += "
"; str += "
"; OpenDivOverlay(str); } } function ShowChatAlert() { try { document.getElementById("iframe_chat").style.display = "block"; }catch(e) { } } function fnGetLatestBlog(mode,id) { var ajaxRequest; if (mode == "") { mode = 0; } var result; var newOption; try { ajaxRequest = new XMLHttpRequest(); } catch (e) { try { ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support ajax!"); return false; } } } ajaxRequest.onreadystatechange = function() { if (ajaxRequest.readyState == 4) { result = ajaxRequest.responseText; if (mode == 'LHS') { document.getElementById("lhs_dating_news").innerHTML = result; } else if (mode == 'index_latest_blog') { document.getElementById("div_home_blog").innerHTML = result; } } } ajaxRequest.open("GET","/latest_blog.php?mode="+mode+"&id="+id, true); ajaxRequest.send(null); } function isEmailCharacters(obj, msg) { //var exp=/\S\.\S/gi; var exp=/\@|hotmail|yahoo|FB|gmail|googlemail|\.com|\.co.uk|07|ymail|hot male|dot|AOL/gi; //var retval = str.match(exp); if (exp.test(obj.value)){ obj.focus(); return true; } else { return false; } } function FavouritesOnlyPicsAlert(tabid) { var str= ""; str = "


Your main photo is only visible to your Favourites. We strongly advise against this, as this means that most users cannot see it and this will reduce the chances of anyone contacting you.

"; str += "

"; str += "Remove Favourites only restriction

"; /*if (page == 'home') { str += "Leave it as it is

"; } else { str += "Leave it as it is

"; }*/ str += "Leave it as it is

"; str += "Leave it as it is, and do not ask me again

"; str += "

"; OpenDivOverlay(str); } function RegFavouritesOnlyPicsAlert(tabid) { var str= ""; str = "


Your main photo is only visible to your Favourites. We strongly advise against this, as this means that most users cannot see it and this will reduce the chances of anyone contacting you.

"; str += "

"; str += "Remove Favourites only restriction

"; str += "Leave it as it is

"; str += "Leave it as it is, and do not ask me again

"; str += "

"; OpenDivOverlay(str); } function ChatUpgradeMembership() { str = "


To use online chat feature, both users must be Premium members. However, if you upgrade your membership to Premium Plus you can initiate chat with all users.

"; str += "
  
"; str += "
"; OpenDivOverlay(str); } function HideChatAlert() { try { document.getElementById("iframe_chat").style.display = "none"; }catch(e) { } } function suspendedAlert() { str = "


Sorry you cannot perform this action as your profile is currently suspended.

"; str += "
"; str += "
"; OpenDivOverlay(str); } function ChkCartTimeOut(ses_id,eve_id) { if (ses_id != "") { var ajaxRequest; val = ses_id; if (val == "") { val = 0; } var result; var newOption; try { ajaxRequest = new XMLHttpRequest(); } catch (e) { try { ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support ajax!"); return false; } } } ajaxRequest.onreadystatechange = function() { if (ajaxRequest.readyState == 4) { result = ajaxRequest.responseText; if (result == "success") { document.thisForm1.submit(); } else { var str= ""; str = "


This booking has exceeded the time limit and has been reset - please start again

"; str += "

"; str += ""; str += "

"; OpenDivOverlay(str); return "failure"; } } } ajaxRequest.open("GET","/core/chk_event_cart.php?action=ChkCartTimeout&ses_id=" + ses_id+"&eve_id="+eve_id, true); ajaxRequest.send(null); } } function confirm_to_remove_asian_profile() { var str= ""; str = "


This will delete the profile that has been created for you on Asiansinglesolution.com

"; str += "

"; str += ""; str += " "; str += "

"; OpenDivOverlay(str); } function checkip1(){ //alert('here'); var ip = document.getElementById('ipaddress').value; //alert(document.getElementById('ipaddress').value); if ( window.XMLHttpRequest){ http = new XMLHttpRequest(); } else if ( window.ActiveXObject ){ http = new ActiveXObject("Microsoft.XMLHTTP"); } http.onreadystatechange = httpChanges3; try { url = "/dating/checkip.php?ipaddress="+document.getElementById('ipaddress').value; //url = "/dating/checkip.php?ipaddress=81.174.147.164"; http.open("GET",url,true); http.send(null); } catch (e) { alert(e); } } function isMinWord(obj,siz) { if (Trim(obj.value)!="") { strLen = obj.value.split(" "); if (strLen.length >= siz) { return true; } else { return false; } } } function isMinLen(obj,siz) { if(Trim(obj.value)!="") { var strLen = obj.value; if(strLen.length < siz) { return false; } else { return true; } } } function httpChanges3(){ //alert(http.readyState); if ( http.readyState == 4 ){ var x = http.responseText; if(x=="invalid") { alert("You appear to be registering from outside the UK. We only accept UK registrations. If you think this is incorrect, please telephone us on 0845 6436520"); return false; } else { document.getElementById("loginForm").submit(); return true; } } } function checkip4(){ //alert('here'); var ip = document.getElementById('ipaddress').value; //alert(document.getElementById('ipaddress').value); if ( window.XMLHttpRequest){ http = new XMLHttpRequest(); } else if ( window.ActiveXObject ){ http = new ActiveXObject("Microsoft.XMLHTTP"); } http.onreadystatechange = httpChanges4; try { url = "/dating/checkip.php?ipaddress="+document.getElementById('ipaddress').value; //url = "/dating/checkip.php?ipaddress=81.174.147.164"; http.open("GET",url,true); http.send(null); } catch (e) { alert(e); } } function IncreasePopup() { try { document.getElementById('div_overlay').style.height = "650px"; } catch(e) {} } function DecreasePopup() { try { document.getElementById('div_overlay').style.height = "350px"; } catch(e) {} } function httpChanges4(){ //alert(http.readyState); if ( http.readyState == 4 ){ var x = http.responseText; if(x=="invalid") { alert("You appear to be registering from outside the UK. We only accept UK registrations. If you think this is incorrect,please telephone us on 0845 6436520"); return false; } else { document.getElementById("loginForm2").submit(); return true; } } } function checkip5(){ //alert('here'); var ip = document.getElementById('ipaddress').value; //alert(document.getElementById('ipaddress').value); if ( window.XMLHttpRequest){ http = new XMLHttpRequest(); } else if ( window.ActiveXObject ){ http = new ActiveXObject("Microsoft.XMLHTTP"); } http.onreadystatechange = httpChanges5; try { url = "/dating/checkip.php?ipaddress="+document.getElementById('ipaddress').value; //url = "/dating/checkip.php?ipaddress=81.174.147.164"; http.open("GET",url,true); http.send(null); } catch (e) { alert(e); } } function httpChanges5(){ //alert(http.readyState); if ( http.readyState == 4 ){ var x = http.responseText; if(x=="invalid") { alert("You appear to be registering from outside the UK. We only accept UK registrations. If you think this is incorrect,please telephone us on 0845 6436520"); return false; } else { document.getElementById("loginForm3").submit(); return true; } } } function Trim(nStr) { return nStr.replace(/(^\s*)|(\s*$)/g, ""); } function openHelp1(topicID,pac_id) { if (topicID) { //displayDivOverlay(); //window.open("/core/help.html?id="+topicID,"helpWindow","width=385,height=375,scrollbars=yes,resizable=yes"); window.open("/core/help.html?package_id="+pac_id+"&id="+topicID,"helpWindow","height=700,width=900,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,left=0,top=0,resizable=1"); } } function openHelp(topicID) { if (topicID) { //window.open("/core/help.html?id="+topicID,"helpWindow","width=385,height=375,scrollbars=yes,resizable=yes"); window.open("/core/help.html?id="+topicID,"helpWindow","height=700,width=900,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,left=0,top=0,resizable=yes"); } if (!topicID) { // window.open("/core/help.html","helpWindow","width=385,height=375,scrollbars=yes,resizable=yes"); window.open("/core/help.html","helpWindow","height=700,width=900,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,left=0,top=0,resizable=yes"); } } function openPackageUpgrade() { window.open("/common/upgrade.html","UpgradePackage","height=500,width=500,scrollbars=yes,resizable=yes"); } function profilePhotoManager() { window.open("/dating/photomanager.html","photoManager","width=500,height=500,scrollbars=Yes,resizable=yes"); } function profilePhotoViewer(userID) { window.open("/dating/photoviewer.html?id="+userID,"photoViewer","width=500,height=500,scrollbars=yes,resizable=yes"); } function transactionViewer(transactionID) { window.open("/common/credittransaction.html?id="+transactionID,"fullTransaction","width=500,height=500,scrollbars=yes,resizable=yes"); } function addFloats(floatA,floatB) { // add two floats together, because on its own JavaScript // sometimes runs out of fingers var intA = Math.round(floatA * 100); var intB = Math.round(floatB * 100); var intC = intA + intB; return (intC / 100); } function subtractFloats(floatA,floatB) { // subtracts floatB from floatA, because on its own JavaScript // sometimes runs out of fingers var intA = Math.round(floatA * 100); var intB = Math.round(floatB * 100); var intC = intA - intB; return (intC / 100); } function enableDateMenu(prefix) { // enables the prefixed date menu group // see also DateMenu() PHP function if (document.getElementById(prefix+'_enable').type == "checkbox") { if (document.getElementById(prefix+'_enable').checked == true) { document.getElementById(prefix+'_day').disabled = false; document.getElementById(prefix+'_month').disabled = false; document.getElementById(prefix+'_year').disabled = false; } else { document.getElementById(prefix+'_day').disabled = true; document.getElementById(prefix+'_month').disabled = true; document.getElementById(prefix+'_year').disabled = true; } } else { document.getElementById(prefix+'_day').disabled = false; document.getElementById(prefix+'_month').disabled = false; document.getElementById(prefix+'_year').disabled = false; } } function disableDateMenu(prefix) { // disables the prefixed date menu group // see also DateMenu() PHP function document.getElementById(prefix+'_day').disabled = true; document.getElementById(prefix+'_month').disabled = true; document.getElementById(prefix+'_year').disabled = true; } function verifyDelete(confLocation) { // for use with DTMLRecordSummary() // verifies the user's intention to delete a record before proceeding // with the supplied confLocation redirect if (confirm('Are you sure you wish proceed with this action?')) { location.href=confLocation; } } function changeClass(id,newClass) { // changes CSS class of id to newClass identity=document.getElementById(id); identity.className=newClass; } function updateDropDownTextBox(formField,opMode) { // supporting function for the "dropdowntextbox" DTML widget type // objects var textBox = document.getElementById(formField); var selList = document.getElementById(formField+'_dtmllist'); // read list menu var menuItems = Array(); var i=0; do { menuItems[i] = selList.options[i].value; } while (++i < selList.length); if (opMode == "box2list") { if (textBox.value) { for (i=0; i= 5) // JScript gives us Conditional compilation, we can cope with old IE versions. // and security blocked creation of the objects. try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } @end @*/ if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp = new XMLHttpRequest(); } return xmlhttp; } function formElementLimiter(obj,maxlimit ) { if ( obj.value.length > maxlimit ) { obj.value = obj.value.substring( 0, maxlimit ); obj.blur(); obj.focus(); return false; } } function bookmarksite(title, url){ if (document.all){ window.external.AddFavorite(url, title);} else if (window.sidebar) window.sidebar.addPanel(title, url, "") } function openNickSuggester() { window.document.location="#popupwindow"; document.getElementById("popupframe").innerHTML = ""; try{ document.getElementById("profileform").style.display = "none"; } catch(e) { } displayDivOverlay(); //openHelp(4); } function OpenDivOverlay(str) { try{ document.getElementById("profileform").style.display = "none"; } catch(e) { } try{ document.getElementById("thisForm12").style.display = "none"; } catch(e) { } try{ document.getElementById("formSearchWithLimits").style.display = "none"; } catch(e) { } document.getElementById("popupframe").innerHTML = str; displayDivOverlay(); } function ProfileVisible(id) { var str= ''; if (id == 1) { document.profilevisibleform.submit(); } else if (id == 2) { str = "


Are you sure you want to make your profile hidden?"; str += "

"; OpenDivOverlay(str); } else if (id == 3) { location.href = "/dating/step2.html?err_id=2"; } } function TrailMembership() { if (isNull(document.getElementById("promo_code"),"Promotional code")) { } else { var result; var newOption; try { ajaxRequest = new XMLHttpRequest(); } catch (e) { try { ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support ajax!"); return false; } } } ajaxRequest.onreadystatechange = function() { if (ajaxRequest.readyState == 4) { result = ajaxRequest.responseText; if (result == 1) { try { document.getElementById("frmPackage").style.display = "none"; } catch(e) { } document.getElementById("popupframe").innerHTML = ""; document.getElementById('popupforms').style.padding="50px 0px 0px 0px"; displayDivOverlay(); } else if (result == 2) { alert("Promotional Code has already been used"); } else { alert("Invalid promotional code"); } } } ajaxRequest.open("GET","/core/chkpromo_trailcode.php?action=submit&promo_code=" + Trim(document.getElementById("promo_code").value)); ajaxRequest.send(null); } } function suggestNickname(forename,userid) { if (Trim(forename)!="") { document.getElementById('nsf').style.display = "none"; document.getElementById('nsr').style.display = "inline"; document.getElementById('nsr').innerHTML = "Checking ..."; populateHTTPObject("nsr","GET","suggestnick.php?id="+userid+"&forename="+Trim(forename)); } else { alert("Please enter your first name"); } } function StartVideo() { document.MediaPlayer.controls.play(); document.getElementById('playbutton').disabled = true; document.getElementById('stopbutton').disabled = false; document.getElementById('pausebutton').disabled = false; } function StopVideo() { document.MediaPlayer.controls.stop(); document.getElementById('playbutton').disabled = false; document.getElementById('stopbutton').disabled = true; document.getElementById('pausebutton').disabled = true; } function PauseVideo() { document.MediaPlayer.controls.pause(); document.getElementById('playbutton').disabled = false; document.getElementById('stopbutton').disabled = false; document.getElementById('pausebutton').disabled = true; } function fnSendmsg(arg) { window.location.href=arg; } function fnhelpopen() { window.close(this); window.open("/core/help_new.html",null,"height=700,width=900,status=yes,toolbar=no,menubar=no,location=no,left=0,top=0,resizable=1"); }