function get_godaddy_domain_state(){

$("#searchtruekeyword").html("<B>Search Keyword : ");
$("#keywordcpccontent").html("");
$("#keywordsearchvaluecontent").html("");

if(getStr($("#autocompletekeyword").val())==""){
alert("Please fill in the keyword.");
	for(var i=0;i<3;i++){
			
						$("#showsearchdomainstate"+i).html("");
					}
			
return;
}

	var domainstr=$("#autocompletekeyword").val();
	var parstr="";
	domainstr=domainstr.split("&").join("");
	domainstr=domainstr.split("amp;").join("");
	domainstr=domainstr.split("?").join("");
	domainstr=domainstr.split("=").join("");
	domainstr=domainstr.split("'").join("");
	domainstr=domainstr.split("<").join("");
	domainstr=domainstr.split(">").join("");
	domainstr=domainstr.split(".").join("");
	var temparrs=domainstr.split(" ");
	
	domainstr=temparrs.join("");
	parstr=domainstr+".com,"+domainstr+".net,"+domainstr+".org";
$.ajax({type:"POST",timeout:15000,async:true,url:'home/getdomainstatus',context:null,data:"doms="+parstr+"&suid=",success:function(res) {
			var returnStr="";	
			var imageStr="";
				if(strCheck(res)==true){
				 returnStr=res;
				returnStr=returnStr.slice(returnStr.indexOf('<p>')+3,returnStr.indexOf('</p>'));
				 returnStr=returnStr.split(',');
					for(var i=0;i<returnStr.length;i++){
						imageStr="";
						if(returnStr[i]=="2"){
						imageStr="<span style='color:#610B0B;'><B>Taken</B></span>";
						}else if(returnStr[i]=="1"){
						imageStr="<span style='color:#38610B;'><B>Available</B></span>";
						}

						$("#showsearchdomainstate"+i).html("<img src='static/images/"+returnStr[i]+".png'> &nbsp;"+imageStr);
					}

				}else{
				// alert('Please try again.');
				}

returnStr=null;
imageStr=null;
						  },error:function(d,s,n){ 
									 // alert('Please try again.');
							
						  }});


					for(var i=0;i<3;i++){
			
						$("#showsearchdomainstate"+i).html("<img src='static/images/0.png'> &nbsp;<span style='color:#DF7401;'> <B>Searching</B></span>");
					}

var tempStrDomain="";
	if(temparrs!=null){
for(k=0;k<temparrs.length;k++){

	if(temparrs[k]!=null && temparrs[k]!=""){
		
tempStrDomain+=(temparrs[k].substring(0,1).toUpperCase()+temparrs[k].substring(1,temparrs[k].length));
	
	}
}

$("#searchtruekeyword").html("<B> "+tempStrDomain+"</B>");
//$.ajax({type:"POST",timeout:15000,async:true,url:'home/showgetestimate',context:null,data:"keywords="+$("#autocompletekeyword").val()+"&keytype=EXACT",success:function(res) { if(res==0){res="0.1";} $("#keywordcpccontent").html("<B> $"+res+"</B>");},error:function(d,s,n){}});
$.ajax({type:"POST",timeout:15000,async:true,url:'instant/getkeywordsearch',context:null,data:"keyword="+$("#autocompletekeyword").val()+"&matchType=EXACT",success:function(res) {
	if(res!=null && res!="" && res!="n"){
		var searchobjs=null;
		eval("searchobjs="+res+";");
		if(searchobjs!=null&&searchobjs['keywords'][0]["searchvalue"]!=null&&searchobjs['keywords'][0]["searchvalue"]!=""){
		$("#keywordsearchvaluecontent").html("<B> "+getNumMoneyFormat_P_Str(searchobjs['keywords'][0]["searchvalue"])+"</B>");
		$("#keywordcpccontent").html("<B> "+getCompetitionStr(searchobjs['keywords'][0]["competition"])+"</B>");
	

		}else{
		$("#keywordsearchvaluecontent").html("<B> 0");
		}
	
	}else{
	if(res==""){
	$("#keywordsearchvaluecontent").html("<B> 0 </B>");
		$("#keywordcpccontent").html("<B> low </B>");
	}
	}

	
	},error:function(d,s,n){}});

pushGAData_action("instant");
}



temparrs=null;
tempStrDomain=null;
domainstr=null;
parstr=null;

}

function getNumMoneyFormat_P_Str(numberStr){
	numberStr=numberStr+"";
var returnNumberStr="0";
if(numberStr!=null && numberStr!=""){
	if(numberStr.length>3){
	var tempStrNumThree=Math.ceil(numberStr.length/3);
	returnNumberStr="";
	var firstNum=numberStr.length%3;
	if(firstNum!=0){
	tempStrNumThree=tempStrNumThree-1;
	}
	for(var i=0;i<(tempStrNumThree);i++){
		if(firstNum!=0&&i==0){
		returnNumberStr=returnNumberStr+numberStr.substring(0,firstNum)+",";
		}
		if(i<(tempStrNumThree-1)){
	returnNumberStr=returnNumberStr+numberStr.substring((i*3+firstNum),((i+1)*3+firstNum))+",";
		}else{
	returnNumberStr=returnNumberStr+numberStr.substring((i*3+firstNum),((i+1)*3+firstNum));
		}
	}	

	tempStrNumThree=null;
	firstNum=null;
	}else{
	returnNumberStr=numberStr;
	}

}


return returnNumberStr;
}




