var isLoaded = false;
function PreLoadImage() { 
	var l = PreLoadImage.arguments.length 
    for (var i = 0; i < l; i++) 
	{
		this[i+1] = new Image();
		this[i+1].src = PreLoadImage.arguments[i];
	}	 
  isLoaded = true;
}

function ShowImage(name,img)
{
	 document.images[name].src = img
   	 return 1;
}

function top()
{
	if (parent.main)
		parent.main.location.hash = "top";
}

function mySubmit(f,url)
{
	if (url != "")
	{ 
		f.action = url
		f.submit();
	}	
}

function wOpen(myPage,w,h,s)
{
	var wnd 
	wnd = window.open(myPage,'PMT','width='+ w +',height=' + h + ',top=100,left=100,resizable,scrollbars=' + s +',toolbar=no,status=no,directories=no,menubar=no,location=no');
	return 1;
}

function radioSelect(myForm, src){
	var counter = 0;
	var objLength = myForm[src].length;
	
	for (i=0; i<objLength; i++){
		if (myForm[src][i].checked){
			counter = counter +1;
		}
	}
	if (!objLength) {
		counter = (myForm[src].checked) ? 1 : 0;
	}
	return counter ;
}
function OpenWindow(win, url, wsize)
{
    var wnd = window.open(url,win,wsize+' top=120,left=220,resizable=1,scrollbars=0,toolbar=no,status=no,directories=no,menubar=no,location=no',false);
	if (wnd) wnd.focus();
    return 1;
}

//-->