
function getViewportHeight()
{if(window.innerHeight!=window.undefined)return window.innerHeight;if(document.compatMode=='CSS1Compat')return document.documentElement.clientHeight;if(document.body)return document.body.clientHeight;return window.undefined;}
function getViewportWidth()
{if(window.innerWidth!=window.undefined)return window.innerWidth;if(document.compatMode=='CSS1Compat')return document.documentElement.clientWidth;if(document.body)return document.body.clientWidth;return window.undefined;}
function moveSelectedLayers()
{var theBody=document.documentElement;var fullHeight=getViewportHeight();var scTop=parseInt(theBody.scrollTop,10);window.defaultStatus="offsetHeight = "+document.body.offsetHeight+" scTop = "+scTop+" Screen.availHeight = "+screen.availHeight;for(i=0;i<movingLayers.length;i++)
{theHeight=scTop+(fullHeight-movingLayers[i].offsetHeight-120)/2;if(theHeight<topheight)
{theHeight=topheight;}
movingLayers[i].style.top=theHeight+"px";}}
function createRequestObject(){var request_o;var browser=navigator.appName;if(browser=="Microsoft Internet Explorer")
{request_o=new ActiveXObject("Microsoft.XMLHTTP");}
else
{request_o=new XMLHttpRequest();}
return request_o;}
function buildQueryString(theFormName){theForm=document.getElementById(theFormName);var qs=''
for(e=0;e<theForm.elements.length;e++){if(theForm.elements[e].name!=''&&theForm.elements[e].name!='page_id'){if(theForm.elements[e].type=="radio"||theForm.elements[e].type=="checkbox"){if(theForm.elements[e].checked){qs+=(qs=='')?'':'&'
qs+=theForm.elements[e].name+'='
+escape(theForm.elements[e].value)}}
else{qs+=(qs=='')?'':'&'
qs+=theForm.elements[e].name+'='
+escape(theForm.elements[e].value)}}}
return qs}
