

//*******************************//

function showHideDiv(myDiv)
{
 var myDiv = document.getElementById(myDiv);
 myDiv.style.display = (myDiv.style.display != "block") ? "block" : "none";
}

//*******************************//

function changeImage(img_obj, first_file, second_file)
{
    //first replace the image
	var img_obj = document.getElementById(img_obj);
	var first_img = new Image();
		first_img.src = first_file;
	var second_img = new Image();
		second_img.src = second_file;
    	img_obj.src = (img_obj.src != second_img.src) ? second_img.src : first_img.src;	
}

//*******************************//

function changeText(text_obj, start_txt, end_txt)
{
	//now replace the text
	//pass in the object, starting text, and ending text
	var st_text = start_txt;
	var end_text = end_txt;
	text_obj.innerHTML = (text_obj.innerHTML != st_text)? st_text: end_text;
}

//*******************************//


function formsPop( url ) {
window.open(url,'popUpWin', "resizable=yes, width=760, height=500, menubar=yes, scrollbars=yes");
}

//*******************************//

function printWin() {
	if (window.print) window.print();
}

//*******************************//

function doTab(obj) {
	re = /.*href="(.*?)".*/i
	matchArr = obj.innerHTML.match(re)
	if (matchArr) {
		location = matchArr[1]
	}
}

//*******************************//






