function formmailwin(seshid,customerid,emailtype)
{
day = new Date();
id = day.getTime();
var url = "/admin/rbformmail.php?seshid=" + seshid + "&Customer_ID=" + customerid + "&emailtype=" + emailtype;
window.open(url,'id', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=800,height=600');
}

function confirmoperation(form)
{
	//alert("hello");
	operation = form.operation.value
	if (operation == "")
	{
		form.submit();
	}
	else
	{
		outMessage = "Are you sure you want to " + operation + " this record?";
		return confirm (outMessage);
		
	}
}

function mandatoryname(form)
{
	//alert("hello");
	Name = form.Name.value
	if (Name != "")
	{
		return true;
	}
	else
	{
		outMessage = "Please supply a Name";
		alert (outMessage);
		return false;
	}
}
function Select_Value_Set(SelectName, Value)
{
//	alert(SelectName + " " + Value);
	eval('SelectObject = document.' + SelectName + ';');
	for(index = 0;index < SelectObject.length;index++)
	{
		if(SelectObject[index].value == Value)
		SelectObject.selectedIndex = index;
	}
}

