// JavaScript Document
function change_tab(id)
{
var td_id = "";
	for(var i=0;i<=5;i++)
	{
		td_id = "h_"+i;
		document.getElementById(td_id).style.backgroundImage = '';
		document.getElementById(td_id).className = 'menu_tab_g';
	}
	td_id = "h_"+id;
	document.getElementById(td_id).style.backgroundImage = 'url(images/Tag_Buttons.png)';
	document.getElementById(td_id).className = 'menu_tab_w';
}
function reset_tab(id)
{
	var td_id = "";
	td_id = "h_"+id;
	document.getElementById(td_id).style.backgroundImage = '';
	document.getElementById(td_id).className = 'menu_tab_g';

	var default_id=document.getElementById("td_id").value;
	if(default_id!="")
	{
		document.getElementById(default_id).style.backgroundImage = 'url(images/Tag_Buttons.png)';
		document.getElementById(default_id).className = 'menu_tab_w';
	}
	
}
function call_tab(id)
{
	document.getElementById("td_id").value=id;
	document.getElementById(id).style.backgroundImage = 'url(images/Tag_Buttons.png)';
	document.getElementById(id).className = 'menu_tab_w';
}
//validate function for the form in header file
function validate_header(){
	if(document.login.txt_login_id.value==""){
		document.getElementById("err_msg").innerHTML = "Please enter user id.";
		document.login.txt_login_id.focus();
		return false;
	}
	if(document.login.txt_password.value==""){
		document.getElementById("err_msg").innerHTML = "Please enter password.";
		document.login.txt_password.focus();
		return false;
	}	
	return true;	
}
function openLogo(ClientID)
{
var attributes = 'toolbar=0,location=0,directories=0,status=0, menubar=0,scrollbars=1,resizable=1,width=550,height=600,left=0,top=0';
sealWin=window.open('http://www.ccavenue.com/verifySeal.jsp?ClientID='+ClientID ,'win',attributes);
self.name = 'mainWin';
}
function show_suggestion(){
		window.open('suggestion.php','offer','height=400,width=550');
}
