// JavaScript Document
function get_on_detail(get_dv_id,gt_img_id,gt_val_of)
{
get_value_a=document.getElementById(gt_val_of).name;
if(get_value_a=="a_on")
{
document.getElementById(gt_img_id).src="http://www.tur.me/login/log_img/chng_open_bull.gif";
document.getElementById(gt_val_of).name="a_off";
document.getElementById(get_dv_id).style.display="none";
}
else
{
document.getElementById(gt_img_id).src="http://www.tur.me/login/log_img/chng_close_bull.gif";
document.getElementById(gt_val_of).name="a_on";
document.getElementById(get_dv_id).style.display="block";
}
}
function cursr_chng(gt_id)
{
document.getElementById(gt_id).style.cursor="hand";
}

function get_on_detail_valid(get_dv_id,gt_img_id,gt_val_of)
{

get_value_a=document.getElementById(gt_val_of).name;
var prefix_dom=document.getElementById('domain_combo').value;
var site_name=document.Pfrm.Pyoursite_txt.value;

	if(prefix_dom==0)
	{
			
			alert("Please select the website name or domain name");
			document.getElementById('comp_chng_img').src="http://www.tur.me/login/log_img/chng_open_bull.gif";
			document.getElementById('comp_a_on').name="a_on";
			document.getElementById('comp_detail').style.display="block";
			//document.Pfrm.Pyoursite_txt.focus();
	}
	else
	{
			submit_mail_company();
			if(get_value_a=="a_on")
			{
			document.getElementById(gt_img_id).src="http://www.tur.me/login/log_img/chng_open_bull.gif";
			document.getElementById(gt_val_of).name="a_off";
			document.getElementById(get_dv_id).style.display="none";
			}
			else
			{
			document.getElementById(gt_img_id).src="http://www.tur.me/login/log_img/chng_close_bull.gif";
			document.getElementById(gt_val_of).name="a_on";
			document.getElementById(get_dv_id).style.display="block";
			}
	}
}
function submit_mail_company()
{
var m_cmp=document.Pfrm.Pcomp_txt.value;
var m_add='';
var m_phn='';
var m_fax='';
var m_email=document.Pfrm.Pemail_txt.value;
var m_yourSite=document.Pfrm.Pyoursite_txt.value;
var m_domain=document.Pfrm.domain_combo.value;
var m_site_mk='www.'+m_yourSite+m_domain;
document.getElementById('file_frame').src='../mail_comp.php?m_cmp='+ m_cmp+ '&m_add='+m_add+'&m_phn='+m_phn+'&m_fax='+m_fax+'&m_email='+m_email+'&m_site_mk='+m_site_mk;
}

