function GetDocumentHeight(){
	if( typeof( window.pageYOffset ) == 'number' && typeof( window.innerHeight ) == 'number')
		//Netscape compliant
		return window.pageYOffset + window.innerHeight;
	else if ( (document.body != null)&& (document.body.scrollTop !=null) && (document.body.clientHeight !=null) )
		//IE compliant
		return document.body.clientHeight+ document.body.scrollTop;
	else
		return 500;
}
function OpenImageWindow(image){
	if (window !=null && image!=null)
		window.open(image.src,image.name,"width="+image.width+",height="+image.height);	
}

function GetDocumentWidth(){
}

function GetImage(strImageName,width,height)
{
	var image = new Image();
	image.src = strImageName;
	image.width= width;
	image.height= height;
	return image;
}