feature_on = false;
function load_feature(){

	if(!feature_on){
		document.getElementById('feature').innerHTML = '<img src="/image/himobile/loading.gif" >';
		document.form_product_content.content.value= 'feature';
		sajax('feature' , '/product-detail' , 'form_product_content' );
		
		if(document.getElementById('feature').innerHTML != '<img src="/image/himobile/loading.gif" >')
			feature_on = true;		
	}
	
}

review_on = false;
function load_review(){

	if(!review_on){
		document.getElementById('review').innerHTML = '<img src="/image/himobile/loading.gif" >';
		document.form_product_content.content.value= 'review';
		sajax('review' , '/product-detail' , 'form_product_content' );
		if(document.getElementById('review').innerHTML != '<img src="/image/himobile/loading.gif" >')
			review_on = true;
	}
	
} 

package_content_on = false;
function load_package_content(){

	if(!package_content_on){
		document.getElementById('package_content').innerHTML = '<img src="/image/himobile/loading.gif" >';
		document.form_product_content.content.value= 'package_content';
		sajax('package_content' , '/product-detail' , 'form_product_content' );
		if(document.getElementById('package_content').innerHTML != '<img src="/image/himobile/loading.gif" >')
			package_content_on = true;			
	}
	
}

video_on = false;
function load_video(){

	if(!video_on){
		document.getElementById('video').innerHTML = '<img src="/image/himobile/loading.gif" >';
		document.form_product_content.content.value= 'video';
		sajax('video' , '/product-detail' , 'form_product_content' );	

		if(document.getElementById('video').innerHTML != '<img src="/image/himobile/loading.gif" >')
			video_on = true;			
	}
	
}

// load model
function select_model(form_action){
 
	document.form_model.method = 'POST';
	document.form_model.action = form_action;
	document.form_model.submit();

}

function add_cart(){

	document.add_cart.method = 'POST';
	document.add_cart.action = '/cart-add';
	document.add_cart.submit();



}

function notify_me(type){

	document.add_cart.waiting_type.value = type;
	document.add_cart.method = 'POST';
	document.add_cart.action = '/cart-notify';
	document.add_cart.submit();

}

function pager( page ){	
	document.cmt_list.curr_page.value = page;		
	document.cmt_list.action = sajax('review' , '/product-detail' , 'cmt_list' );
}

function email_to_friend(){
	
	document.email.action = "/email-a-friend";
	document.email.method = "POST";
	document.email.submit();
}


 