// JavaScript Document
// Div Centering Function

function load_img(myPath){
	myIMG = new Image();
	myIMG.src = myPath;
}

function submit_form(form_id)
{
	document.forms[form_id].submit();
}

function change_page(id, mySrc){
	parent.document.getElementById(id).setAttribute('src','/' + mySrc);
}

function SetSize()
{
        var y = 0;
		var x = 0;
        if (self.innerHeight)
        {y = self.innerHeight;}
        else if (document.documentElement && document.documentElement.clientHeight)
        {y = document.documentElement.clientHeight;}
        else if (document.body)
        {y = document.body.clientHeight;}
		document.getElementById('divMain').style.height = (y-2) + "px";
   
        if (self.innerHeight)
        {x = self.innerWidth;}
        else if (document.documentElement && document.documentElement.clientHeight)
        {x = document.documentElement.clientWidth;}
        else if (document.body)
		{x = document.body.clientWidth;}
        document.getElementById('divMain').style.width = (x-2) + "px";
}

function mouseOver(myId, myClass, myState)
{
	if(myState == "over")
	{
		document.getElementById(myId).setAttribute("class", myClass + "_over");
	}
	else
	{
		document.getElementById(myId).setAttribute("class", myClass);
	}
}
