// JavaScript Document
function space(no)
{
	var str = '&nbsp;';
	for (i=0; i < no; i++)
	{
		document.write(str);
	}
}
function Redirect_URL(url)
{
	window.location = url;
}
function popup(url,w_name)
{
	wndw = window.open(url,w_name,"status=0,width=430,height=300,top=30,left=300,titlebar=1,scrollbars=1");
}

function ChangeCur(cur_type)
{
	if (cur_type == 0)
	{
		document.gs.submit.style.cursor = "default";
	}
	if (cur_type == 1)
	{
		document.gs.submit.style.cursor = "hand";
	}
}

function change_cur(cur_type,id)
{
	if (cur_type == 0)
	{
		document.getElementById(id).style.cursor = "default";
	}
	if (cur_type == 1)
	{
		document.getElementById(id).style.cursor = "hand";
	}
}

function hide_pecq_menu()
{
	document.getElementById("pecq_div").style.display = "none";
}

function SetTotal(code)
{
	var tot_amt = code.substr(8,(code.length - 8));	
	document.ord_frm.total_amount.value = tot_amt;
}