	function getOMAType(){		
		var frm = document.getElementById("frm");					
		var omaFlag = (frm.hp_model.value != "") ? (frm.hp_model.value).split("||") : "";

	    if(omaFlag[0] == "OMA" && omaFlag[1] != "SGH-D500"){
         	showOmapin('block','','end');								
	    }
	    else{
			showOmapin('none','end','');		
	    }
	}
	
	function showOmapin(appear,class1,class2) {				
        document.getElementById("divomapin").style.display    = appear;
		document.getElementById("divomapintxt1").style.display    = appear;
		document.getElementById("divomapintxt2").style.display    = appear;		
    }

    function goFocus(){
    	var frm = document.frm;
        frm.keyword.focus();
    }

    function goSuc(page) {
        document.location.href = page;
    }	
        
	//check email userid
	function CheckEmailUserID(obj) {
	    var t = obj.value;
	    tAry = t.split("@");
	    UserName = tAry[0];
	    DomainName = tAry[1];
	    var astr = FFSTRING_DEF_ALPHA+FFSTRING_DEF_NUMBER+"_"+"-"+".";
	
	    for (i=0; i < UserName.length; i++){
	        if(astr.indexOf(UserName.substring(i,i+1))<0) {
	            return -1;
	        }
	    }
	}
	
    function goTab(Tran){
    	if(Tran == "WAP"){
    		document.frm2.action = "/support/configure-phone-setting-wap.do";
    		document.frm2.submit();
    	}else if(Tran == "MMS"){
    		document.frm2.action = "/support/configure-phone-setting-mms.do";
    		document.frm2.submit();
    	}else if(Tran == "EMAIL"){
    		document.frm2.action = "/support/configurephone/emailSetting.do";
    		document.frm2.submit();
    	}
    } 	