<!--
function SubmitControl(tocheack){
	if(document.all || document.getElementById){
		for(i=0; i < tocheack.length;i++){
			if(tocheack.elements[i].type.toLowerCase()=="submit"||tocheack.elements[i].type.toLowerCase()=="reset"){
				tocheack.elements[i].value = tocheack.elements[i].value;
				tocheack.elements[i].disabled = true
			}
		}
	}
}

function popup(images, width, height, target){
	if(images == "" || images == null) return;
	if(target == "" || target == null) var target = "_blank";

	if(width == "" || width == null || height == "" || height == null){
		var width = screen.availWidth/2;
		var height = screen.availHeight/2;
	} else {
		var width = width + 70;
		var height = height + 70;
	}

	var wx = (screen.availWidth/2)-(width/2);
	var wy = (screen.availHeight/2)-(height/2);

	if(document.all){
		var sizer = window.open("",target,"left="+wx+",top="+wy+",width="+width+",height="+height+",scrollbars=no,fullscreen=no");
		sizer.location = images;
	} else {
		wnd = window.open(images, target, "width="+width+",height="+height+",menubar=no,toolbar=no,status=no,location=no,scrollbars=auto,fullscreen=no,directories=no,resizable=yes,screenX="+wx+",screenY="+wy);
		window.wnd.moveTo(wx, wy);
	}
	return false;
}

function popupmax(images, width, height){
	if(images == "" || images == null) return;

	if(width == "" || width == null || height == "" || height == null){
		var width = screen.availWidth;
		var height = screen.availHeight;
	}

	if(document.all){
		var sizer = window.open("","","left=0,top=0,width="+width+",height="+height+",scrollbars=no,fullscreen=yes");
		sizer.location = images;
	} else {
		wnd = window.open(images,"_blank","width=width,height=height,menubar=no,toolbar=no,status=no,location=no,scrollbars=auto,fullscreen=yes,directories=no,resizable=yes");
	}
	return false;
}

function GetElementById(id){
	if(document.getElementById(id)){
		return document.getElementById(id);
	} else if(document.all[id]){
		return document.all[id];
		} else if(document.layers && document.layers[id]){
			return (document.layers[id]);
			} else {
				return false;
			}
}
// -->
