﻿oldWindow=null;function OpenWindow(url)
{if(oldWindow)oldWindow.close();width=640;height=480;l=(screen.width-width)/2;t=(screen.height-height)/2;oldWindow=window.open(url,'_blank','width='+width+',height='+height+',left='+l+',top='+t+',location=0,menubar=0,toolbar=0,resizable=0,scrollbars=1,status=0');}
function OpenWindowSized(URL,Name,W,H,L,T,Scrolls,Resize){var defProps='copyhistory=0,directories=0,fullscreen=0,location=1,menubar=0,status=1,titlebar=1,toolbar=0';var poppedProps='';if(W!=null){if(Scrolls==true){W+=16;}
poppedProps+=('width='+W+',');}
if(H!=null){poppedProps+=('height='+H+',');}
if(L!=null){poppedProps+=('left='+L+',');}
if(T!=null){poppedProps+=('top='+T+',');}
poppedProps+='scrollbars='+((Scrolls==true)?1:0)+',';poppedProps+='resizable='+((Resize==true)?1:0)+',';poppedProps+=defProps;poppedUp=window.open(URL,Name,poppedProps);setTimeout("poppedUp.window.focus();",100);return poppedUp;}
function CloseWindow()
{window.close();}
function ShowArticle(id)
{OpenWindow('Article.aspx?ID='+id);}
function ShowArticleWithRow(id,row)
{OpenWindow('Article.aspx?ID='+id+'&RowID='+row);}
imgout=new Image(9,9);imgin=new Image(9,9);imgout.src="images/icon_expand.jpg";imgin.src="images/icon_collapse.jpg";function filter(imagename,objectsrc){if(document.images){document.images[imagename].src=eval(objectsrc+".src");}}
function shoh(id){if(document.getElementById){if(document.getElementById(id).style.display=="none"){document.getElementById(id).style.display='block';filter(("img"+id),'imgin');}else{filter(("img"+id),'imgout');document.getElementById(id).style.display='none';}}else{if(document.layers){if(document.id.display=="none"){document.id.display='block';filter(("img"+id),'imgin');}else{filter(("img"+id),'imgout');document.id.display='none';}}else{if(document.all.id.style.visibility=="none"){document.all.id.style.display='block';}else{filter(("img"+id),'imgout');document.all.id.style.display='none';}}}}
