function popupform(myform)
	{
		var lang = document.getElementById('lang').value;
		var phone = document.getElementById('phone').value;
			myform = myform + '?lang=' + lang + '&phone=' + phone;
		// document.getElementById('smsSendBox').style.display='block';
		 $('#smsSendBox').fadeIn(300);
		 $('#ypgOverlay').fadeIn(100);
	//	document.getElementById('ypgOverlay').style.display='block';
		  document.getElementById('smsbox').src = myform ;
		return true;
	}

function popupform1(myform)
	{
		var lang = document.getElementById('lang1').value;
		var phone = document.getElementById('phone1').value;
			myform = myform + '?lang=' + lang + '&phone=' + phone;
		//  document.getElementById('smsSendBox').style.display='block';
		 // document.getElementById('ypgOverlay').style.display='block';
		   $('#smsSendBox').fadeIn(300);
		 $('#ypgOverlay').fadeIn(100);
		  document.getElementById('smsbox').src = myform ;
			//myform.target=windowname;
		return true;
	}


function popupform2(myform)
	{
		var lang = document.getElementById('lang2').value;
		var phone = document.getElementById('phone2').value;
		myform = myform + '?lang=' + lang + '&phone=' + phone;
		
		//document.getElementById('smsSendBox').style.display='block';
		 // document.getElementById('ypgOverlay').style.display='block';
		   $('#smsSendBox').fadeIn(300);
		 $('#ypgOverlay').fadeIn(100);
		  document.getElementById('smsbox').src = myform ;
			//myform.target=windowname;
		return true;
	}

$(document).ready(function(){
$('.hintxt').each(function() {
    var default_value = this.value;
	$(this).focus(function() {
        if(this.value == default_value) {
            this.value = '';
        }
    });
    $(this).blur(function() {
        if(this.value == '') {
            this.value = default_value;
        }
    });
});
});


﻿jQuery.fn.fadeIn = function(speed, callback) { 
    return this.animate({opacity: 'show'}, speed, function() { 
        if (jQuery.browser.msie)  
            this.style.removeAttribute('filter');  
        if (jQuery.isFunction(callback)) 
            callback();  
    }); 
}; 
 
jQuery.fn.fadeOut = function(speed, callback) { 
    return this.animate({opacity: 'hide'}, speed, function() { 
        if (jQuery.browser.msie)  
            this.style.removeAttribute('filter');  
        if (jQuery.isFunction(callback)) 
            callback();  
    }); 
}; 
 
jQuery.fn.fadeTo = function(speed,to,callback) { 
    return this.animate({opacity: to}, speed, function() { 
        if (to == 1 && jQuery.browser.msie)  
            this.style.removeAttribute('filter');  
        if (jQuery.isFunction(callback)) 
            callback();  
    }); 
}; 

