﻿/* Popup.js */
var intNameID=0;function openChild(url,width,height)
{leftC=(screen.width-width)/2;topC=(screen.height-height)/2;intNameID=intNameID+1;var x1=window.open(url,'x_'+intNameID,"width="+width+", height="+height+",top="+topC+",left="+leftC+",location=no, menubar=no, status=no, toolbar=no, scrollbars=0,resizable=no");}
function openChildScroll(url,width,height)
{leftC=(screen.width-width)/2;topC=(screen.height-height)/2;window.open(url,null,"width="+width+", height="+height+",top="+topC+",left="+leftC+",location=no, menubar=no, status=no, toolbar=no, scrollbars=1,resizable=no");}
function openNewWindow(url)
{leftC=(screen.width-570)/2;topC=(screen.height-440)/2;window.open(url,null,"width=570px, height=440px,top="+topC+",left="+leftC+", location=no, menubar=no, status=no, toolbar=no, scrollbars=1,resizable=no");}
function openChildForPublishHTML(url,width,height)
{leftC=(screen.width-width)/2;topC=(screen.height-height)/2;intNameID=intNameID+1;var x1=window.open(url,'x_'+intNameID,"width="+width+", height="+height+",top="+topC+",left="+leftC+",location=yes, menubar=yes, status=yes, toolbar=yes, scrollbars=1,resizable=yes");}
/* SearchAjax.js */
function CheckSearch(objText,strSearchTerm,strSearchMessage){var strTemp=removeBadChar(objText.value);if(strTemp.length<3||strTemp==strSearchTerm){alert(strSearchMessage);return false;}else
{window.location.href="search.aspx?keywords="+encodeURIComponent(removeBadChar(objText.value));}}function CheckEnterKey(e,obj,strSearchTerm,strSearchMessage){var characterCode
if(e&&e.which){e=e
characterCode=e.which}else{e=event
characterCode=e.keyCode}if(characterCode==13){CheckSearch(obj,strSearchTerm,strSearchMessage);return false;}else{return true;}}function removeBadChar(strTemp){strTemp=strTemp.replace("--","");strTemp=strTemp.replace("|","");strTemp=strTemp.replace("<script>","&lt;script&gt;");strTemp=strTemp.replace("</","&lt;&frasl;");strTemp=strTemp.replace("/","&frasl;");strTemp=strTemp.replace(">","&gt;");strTemp=strTemp.replace("<","&lt;");return strTemp;}
