function selectTurcell(val){
	document.getElementById('turkcell_select').value=val
}

/*
*	getUrl 
*	@param : strinh (url)
*/
function getUrl(url){
	window.location.href =url;
}
/*
*	openWindow 
*	@param : string (url)
*	@param : string (window name)
*	@param : string (window Properties)
*	examp MM_openBrWindow('','a','width=200,height=200')
*/
function openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function formObj_submit(formObj,validate){
	if( !validateForm(formObj) ){
		alert('Lütfen Kırmızı Alanları Doldurunuz')
		return false;
	}else{
		formObj.submit();
	}
}

function checkNumber(){
	var mask = /^(5)([0-9]{2})([0-9]{3})([0-9]{4})+$/gi;
	var textArray = new Array();
	var newText = "";
	var str ="";
	var obj = document.getElementById('SEND_GSM');
	if(obj.value.length!=0){
		textArray = obj.value.split("\n");
		alert(textArray.length)
		for(var i=0;i<textArray.length;i++){
			str  =textArray[i];
			str  = str.replace(/([^0-9])/gi,'');
			if(str.match(mask)){
				newText+=textArray[i]+"\n";
			}
		}
		if(newText.length==0){
			return false
		}else{
			obj.value=newText;
		}
	}else{
		return false;
	}
	return true;
}
