var brDOM = (document.getElementById) ? true : false;
	var brNS4 = (document.layers) ? true : false;
	var brIE = (document.all) ? true : false;
	var brIE4 = brIE && !brDOM;
	var brMac = (navigator.appVersion.indexOf("Mac") != -1);
	var brIE4M = brIE4 && brMac;
	var brIsTicker = (brDOM || brNS4 || (brIE4 && !brIE4M));
	var brString = brNS4 ? "NS4" : brDOM ? "DOM" : "IE4";

function ocn_show_div(s_div){
	if (brDOM) {
		if (document.getElementById(s_div)) {
			var objDiv = document.getElementById(s_div);
			objDiv.style.visibility='visible';
		}
	}
}

function ocn_hide_div(s_div){
	if (brDOM) {
		if (document.getElementById(s_div)) {
			var objDiv = document.getElementById(s_div);
			objDiv.style.visibility='hidden';
		}
	}
}


function disableall()
{
	if(document.baseform.cash.checked==true)
	{
	document.baseform.cc_name.disabled=true;
	document.baseform.cc_name.style.backgroundColor= "#d3d3d3";
	document.baseform.cc_type.disabled=true;
	document.baseform.cc_type.style.backgroundColor= "#d3d3d3";
	document.baseform.cc_number.disabled=true;
	document.baseform.cc_number.style.backgroundColor= "#d3d3d3";
	document.baseform.valid_from.disabled=true;
	document.baseform.valid_from.style.backgroundColor= "#d3d3d3";
	document.baseform.valid_to.disabled=true;
	document.baseform.valid_to.style.backgroundColor= "#d3d3d3";
	document.baseform.issue_number.disabled=true;
	document.baseform.issue_number.style.backgroundColor= "#d3d3d3";
	document.baseform.code_10.disabled=true;
	document.baseform.code_10.style.backgroundColor= "#d3d3d3";


	}
	else
	{
	document.baseform.cc_name.disabled=false;
	document.baseform.cc_name.style.backgroundColor= "#ffffff";
	document.baseform.cc_type.disabled=false;
	document.baseform.cc_type.style.backgroundColor= "#ffffff";
	document.baseform.cc_number.disabled=false;
	document.baseform.cc_number.style.backgroundColor= "#ffffff";
	document.baseform.valid_from.disabled=false;
	document.baseform.valid_from.style.backgroundColor= "#ffffff";
	document.baseform.valid_to.disabled=false;
	document.baseform.valid_to.style.backgroundColor= "#ffffff";
	document.baseform.issue_number.disabled=false;
	document.baseform.issue_number.style.backgroundColor= "#ffffff";
	document.baseform.code_10.disabled=false;
	document.baseform.code_10.style.backgroundColor= "#ffffff";
	}
			
}

function delete_test()
{
	document.baseform.step.value = 1;
	document.baseform.submit();
}

function AddCars()
{

	
	//var arg = "&pid="+pid+"&customer_id="+customerid+"&Company_Name_in_full="+cname;
	str  = "index.php?SCREEN=addcars&ACTION=ADDCARS";
	changebg = window.open(str,"_ChangeBG","toolbar=no,scrollbars=no,height=300,width=500,left=100,top=100");
	changebg.focus();
	
}

function ViewUnknown()
{

	
	//var arg = "&pid="+pid+"&customer_id="+customerid+"&Company_Name_in_full="+cname;
	str  = "index.php?SCREEN=viewunknown&ACTION=VIEWUNKNOWN";
	changebg = window.open(str,"_ChangeBG","");
	changebg.focus();
	
}


http://127.0.0.1/index.php?SCREEN=client_review&ACTION=CLIENT_REVIEW
function ReadMore(id)
{
	
	
	
	
	str  = "index.php?SCREEN=client_review&ACTION=CLIENT_REVIEW&id="+id;
	
	
	changebg = window.open(str,"_ClientReview","toolbar=no,scrollbars=yes,height=500,width=600,left=100,top=100");
	changebg.focus();
	
}

