function fixRadioLooks() { var oInput = document.getElementsByTagName("INPUT"); for(i=0; i< oInput.length; i++) { if((oInput[i].type == "checkbox") || (oInput[i].type == "radio")) { oInput[i].style.border = "0px"; } } } function checkRemeber(){ if(document.login.remember.checked) { document.login.remember.checked = false; }else{ document.login.remember.checked = true; } } function openRows(obj){ row1Obj = document.getElementById('passrow1'); row2Obj = document.getElementById('passrow2'); if(obj.checked){ row1Obj.style.visibility = "visible"; row2Obj.style.visibility = "visible"; row1Obj.style.display = "block"; row2Obj.style.display = "block"; }else{ row1Obj.style.visibility = "hidden"; row2Obj.style.visibility = "hidden"; row1Obj.style.display = "none"; row2Obj.style.display = "none"; } } function order(field, url,lngshowlimit){ url += "?"; url += "&order=" + field; url += "&showPerPage=" + lngshowlimit; location.href = url; } function openBrowse(check, divId) { divObj = document.getElementById('tbl_' + divId); fileObj = document.getElementById('imagefile_' + divId); if(check.checked) { divObj.style.visibility = "visible"; }else{ divObj.style.visibility = "hidden"; fileObj.value = ''; } } function changeOrder(idObj, move){ id = idObj.id.replace('a_', ''); var vals = id.split('_'); switch(move) { case "down": var nextOrder = parseInt(vals[vals.length - 1]); nextOrder++; var upperDivId = 'div_' + vals[0] + '_' + vals[1]; var lowerDivId = 'div_' + vals[0] + '_' + nextOrder; break; case "up": var prevOrder = parseInt(vals[vals.length - 1]); prevOrder--; var upperDivId = 'div_' + vals[0] + '_' + prevOrder; var lowerDivId = 'div_' + vals[0] + '_' + vals[1]; break; } var upperdivObj = document.getElementById(upperDivId); var lowerdivObj = document.getElementById(lowerDivId); if(upperdivObj) { var upperHTML = lowerdivObj.innerHTML;} if(lowerdivObj) { var lowerHTML = upperdivObj.innerHTML; } if(upperdivObj) { upperdivObj.innerHTML = upperHTML; } if(lowerdivObj) { lowerdivObj.innerHTML = lowerHTML; } } var addUnl = new Array(); function addUnlimited(slot, startNum, stopNum){ var num = parseInt(addUnl['unlimitedCount_' + slot]); var newnum = num + 1; var IdStr = slot + '_' + slot + '_' + startNum; var newIdStr = slot + '_' + slot + '_' + newnum; var slotDiv = 'moreupload_' + slot; slotDivObj = document.getElementById(slotDiv); slotDivCont = slotDivObj.innerHTML; var moreDivObj = document.getElementById('moreContainer_' + slot); var moreDivCont = moreDivObj.innerHTML; newContents = slotDivCont.replace(IdStr, newIdStr); newContents = newContents.replace(IdStr, newIdStr); if((stopNum == 0) || (newnum < stopNum)) { moreDivObj.innerHTML = moreDivCont + newContents; addUnl['unlimitedCount_' + slot] = newnum; }else{ alert('Sorry! You are not allowed to upload more files for this slot.'); } } function resetContainer(slot, startNum){ var id = 'moreContainer_' + slot; addUnl['unlimitedCount_' + slot] = startNum; var containerObj = document.getElementById(id); containerObj.innerHTML = ''; } function showPreview(sTblId, hTblId){ var showTblObj = document.getElementById(sTblId); var hideTblObj = document.getElementById(hTblId); hideTblObj.style.visibility = "hidden"; hideTblObj.style.display = "none"; showTblObj.style.visibility = "visible"; showTblObj.style.display = "block"; } function modifyPreview(formName, field, type){ var idObj = document.getElementById('tpl_' + field); if(idObj) { switch(type) { case 'text': var innerVal = eval('document.' + formName + '.' + field + '.value'); break; case 'editor': var frmName = field + '___Frame'; editor_frame = document.getElementById(frmName); editor_source = editor_frame.contentWindow.document.getElementById('eEditorArea'); var mContents = editor_source.contentWindow.document.body.innerHTML; var innerVal = mContents; break; } idObj.innerHTML = innerVal; } } var dt = new Date(); function AjaxInit() { var xmlhttp=false; if(window.XMLHttpRequest){ xmlhttp = new XMLHttpRequest(); } else if (window.ActiveXObject){ xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); if (!xmlhttp){ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return(xmlhttp); } function fnDrawMainListing(main_id, sub_id) { var xmlhttp1 = AjaxInit(); var strResponse = ""; var dt1 = new Date(); try { xmlhttp1.open("POST", '../../forums/admin/show_posted_list.php'); xmlhttp1.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xmlhttp1.onreadystatechange = function() { if (xmlhttp1.readyState == 1) { document.getElementById('investor_list').innerHTML = ""; } if (xmlhttp1.readyState == 4 && xmlhttp1.status == 200) { strResponse = xmlhttp1.responseText; document.getElementById('investor_list').innerHTML = strResponse; } } xmlhttp1.send('&x=' + dt1.getTime() + dt1.getSeconds() + '&cid=' + main_id + '&sub_id=' + sub_id); }catch (errv) { alert(errv); } } function ADAjaxPostData(url, queryStr, loadingDiv){ //alert(url); divObj = document.getElementById(loadingDiv); if(divObj) { window.status = "Loading..."; divObj.innerHTML = ""; } var Ajax=AjaxInit(); try { Ajax.open('POST', url); Ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); Ajax.onreadystatechange = function() { if (Ajax.readyState == 4 && Ajax.status == 200) { var tempDiv = document.createElement('tempDiv'); tempDiv .innerHTML =Ajax.responseText; divObj.appendChild(tempDiv); //divObj.innerHTML = Ajax.responseText; //alert(Ajax.responseText); window.status = "Done"; } } Ajax.send(queryStr + "&random=" + Math.random()); }catch (errv) { Ajax.send(errv); } } function Showsubdropdown(aid, divi) { ADAjaxPostData('../../forums/admin/subcat_db.php', 'aid=' + aid, divi); } function Showstatedropdown(aid, divi, state_id) { ADAjaxPostData('../../users/admin/subcat_db.php', 'aid=' + aid + '&state_id=' + state_id, divi); } function Showfrontstatedropdown(aid, divi, state_id) { ADAjaxPostData('../users/subcat_db.php', 'aid=' + aid + '&state_id=' + state_id, divi); } function Showsubclass(aid, divi) { ADAjaxPostData('../classified/class_sub.php', 'aid=' + aid, divi); } function Showsubclassdropdown(aid, divi) { ADAjaxPostData('../../classified/admin/subcat_db.php', 'aid=' + aid, divi); } function fnDrawclassMainListing(main_id, sub_id) { var xmlhttp1 = AjaxInit(); var strResponse = ""; var dt1 = new Date(); try { xmlhttp1.open("POST", '../../classified/admin/show_posted_list.php'); xmlhttp1.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xmlhttp1.onreadystatechange = function() { if (xmlhttp1.readyState == 1) { document.getElementById('investor_list').innerHTML = "Loading..."; } if (xmlhttp1.readyState == 4 && xmlhttp1.status == 200) { strResponse = xmlhttp1.responseText; document.getElementById('investor_list').innerHTML = strResponse; } } xmlhttp1.send('&x=' + dt1.getTime() + dt1.getSeconds() + '&cid=' + main_id + '&sub_id=' + sub_id); }catch (errv) { alert(errv); } } function showBG(trID){ obj = document.getElementById(trID); obj.bgColor="#b0DAF0"; } function hideBG(trID){ obj = document.getElementById(trID); obj.bgColor="#E0F1FF"; } function leftShowBG(trID){ obj = document.getElementById(trID); obj.bgColor="#4fa7e0"; } function leftHideBG(trID,val){ obj = document.getElementById(trID); if(val!=1){ obj.bgColor="#def0fa"; }else{ obj.bgColor="#FFFFFF"; } } function mailpage(){ mail_str = "mailto:?subject=Check out the " + document.title; mail_str += "&body=I thought you might be interested in the " + document.title; mail_str += ". You can view it at, " + location.href; location.href = mail_str; } function bookmark(){ bookmarkurl=location.href bookmarktitle=document.title if (document.all) window.external.AddFavorite(bookmarkurl,bookmarktitle) else if (window.sidebar) // firefox window.sidebar.addPanel(bookmarktitle, bookmarkurl, ""); } function confirmAction(url,msg) { var answer = confirm(msg) if (answer){ location.href = url; } } function showOptions(divID,obj){ divObj = document.getElementById(divID); if(obj.checked==true){ divObj.style.visibility="visible"; divObj.style.display="block"; }else{ divObj.style.visibility="hidden"; divObj.style.display="none"; } } function ShowSubGroup(aid, divi) { ADAjaxPostData('http://www.artsharks.net/groups/group_sub_cat.php', 'aid=' + aid, divi); } function ShowSubfeedback(aid, divi) { ADAjaxPostData('http://www.artsharks.net/feedback_sub_cat.php', 'aid=' + aid, divi); } function groupSubCat(aid, divi) { ADAjaxPostData('../../groups/admin/subcat_db.php', 'aid=' + aid, divi); } function groupListing(c,sc,divi) { ADAjaxPostData('../../groups/admin/show_posted_list.php', 'c=' + c +'&sc='+ sc, divi); } function test() { var viewportwidth; var viewportheight; // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight if (typeof window.innerWidth != 'undefined') { viewportwidth = window.innerWidth, viewportheight = window.innerHeight } // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document) else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0) { viewportwidth = document.documentElement.clientWidth, viewportheight = document.documentElement.clientHeight } // older versions of IE else { viewportwidth = document.getElementsByTagName('body')[0].clientWidth, viewportheight = document.getElementsByTagName('body')[0].clientHeight } //alert('

Your viewport width is '+viewportwidth+'x'+viewportheight+'

'); myobj=document.getElementById("display_result"); livechat_content=document.getElementById("live_chat").innerHTML; document.getElementById("display_result").innerHTML='
'+livechat_content+'
'; //alert(myobj.innerHTML); //myobj.innerHTML="lkfshskl wekdhf dwkfj dsklfj sdlkfj adlkjf"; document.getElementById("live_chat").innerHTML=""; }