﻿
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}


function popup(url) {
	newWindow = window.open(url,'daughter','menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no,width=370,height=350,screenX=50,screenY=50,top=50,left=50');
	newWindow.focus();
}

function popup1(url) {
	newWindow = window.open(url,'daughter','menubar=no,toolbar=no,location=no,scrollbars=yes,resizable=no,width=700,height=600,screenX=50,screenY=50,top=50,left=50');
	newWindow.focus();
}

function clickIE() { 
if (document.all) return false; 
} 
if (document.layers) {document.onmousedown=clickNS;} 
else{document.oncontextmenu=clickIE;} 
document.oncontextmenu=new Function("return false") 
function disableselect(e){ return false } 
function reEnable(){return true} 
document.onselectstart=new Function ("return false") 
if (window.sidebar){ 
document.onmousedown=disableselect 
document.onclick=reEnable 
}



function ShowImage(strImagePath, intImageWidth, intImageHeight)
{
	var ShowImageWin;
	var strName =  "ShowImages"
	var strFeatures;

	strFeatures = "dependent=yes,directories=no,location=no,menubar=no,resizable=yes,personalbar=no,scrollbars=no,titlebar=no,toolbar=no,screenX=50,screenY=50,top=50, left=50, width=" + intImageWidth.toString() + ", height=" + intImageHeight.toString()
	ShowImageWin = window.open(strImagePath, strName, strFeatures);
	ShowImageWin.focus();

	return false;
}

