﻿function testevent(){
		        alert("Stop! You Do Not Have Permission To Copy Data From This Site. All Data On Premier Male Massage is Copyright Date and Time Recorded. Immediate Legal Action Will Be Taken Against Any Violation. Please Note Your IP address Has Been Recorded On Our Abuse Log");
				window.clipboardData.clearData();
				window.clipboardData.setData('Text',"*** STOP! YOU DO NOT HAVE PERMISSION TO COPY DATA FROM THIS SITE. All Data On Premier Male Massage is Copyright, Date and Time Recorded. Immediate LEGAL ACTION WILL BE TAKEN AGAINST ANY VIOLATION Please Note Your IP address Has Been Recorded On Our Abuse Log ***");

				
 };
 
 function writedata(){
		        //window.clipboardData.clearData();
				//window.clipboardData.setData('Text',"*** STOP! YOU DO NOT HAVE PERMISSION TO COPY DATA FROM THIS SITE. All Data On Premier Male Massage is Copyright, Date and Time Recorded. Immediate LEGAL ACTION WILL BE TAKEN AGAINST ANY VIOLATION Please Note Your IP address Has Been Recorded On Our Abuse Log ***");

				
 };

$(document).ready( function() {
				
	
    // Capture right click
    $("#visual").rightClick( function(e) {
        alert("You do not have permission to copy images from this website, all images are paid for and under licence by premier male massage.com copyright(c)2009");
    });
    
    // Capture right mouse down
    $("#visual").rightMouseDown( function(e) {
        alert("You do not have permission to copy images from this website, all images are paid for and under licence by premier male massage.com copyright(c)2009");
    });
    
    // Capture right mouseup
    $("#visual").rightMouseUp( function(e) {
        alert("You do not have permission to copy images from this website, all images are paid for and under licence by premier male massage.com copyright(c)2009");
    });
    
    // Disable context menu on an element
    $("#visual").noContext();
	// Capture right click
    $("#sidebar").rightClick( function(e) {
        alert("You do not have permission to copy images from this website, all images are paid for and under licence by premier male massage.com copyright(c)2009");
    });
    
    // Capture right mouse down
    $("#sidebar").rightMouseDown( function(e) {
        alert("You do not have permission to copy images from this website, all images are paid for and under licence by premier male massage.com copyright(c)2009");
    });
    
    // Capture right mouseup
    $("#sidebar").rightMouseUp( function(e) {
        alert("You do not have permission to copy images from this website, all images are paid for and under licence by premier male massage.com copyright(c)2009");
    });
    
    // Disable context menu on an element
    $("#sidebar").noContext();
	
	//capture the select on text
	
	
	//handle the ajax call for the review popup and make sure you get a nice looking box
	function test(e){
	if (e == false) {return true;}
	// we want to store the values from the form input box, then send via ajax below
	var fname     = $('#name').attr('value');
	var myemail     = $('#email').attr('value'); 
	var mycomments     = $('#comments').attr('value');
		$.ajax({type: "POST",url: "ajaxmail.php",data: 'fname='+ fname + '& email=' + myemail+'& comments=' + mycomments,success: function(del){
				$('div.success').fadeIn();
				$('form#testform').fadeOut();
				return true;
				
			} 
		});
		if (e == false) {return true;}
		return true; 
	
	
}





	var txt='<div class="success" style="display:none; color: #001100;">Thank you Your Email Has Been Sent</div><div class="error" style="display:none;">There was an error sending the data</div><h1 style="border-bottom: 1px dotted #cccccc;padding-bottom: 10px; color:#845663;">Write A Review</h1><form id="testform" name="testform" action><p><label>Name:</label><br /><input type="text" name="name" id="name" class="name" style="font: 18px; border: 1px solid #992042;" /></p><p><label>Your Email:</label><br /> <input type="text" name="email" id="email" class="contact_number" style="font: 18px; border: 1px solid #992042;" /><br /><label>Comments:</label><br /><textarea name="comments" id="comments" cols="48" rows="3" class="review" style="border: 1px solid #992042;">Please Write Your Review Here.</textarea></p></form>';
	
$("#review").click(function () {
							 
	$.prompt(txt,{submit: test,

      buttons: { submit:true,Cancel:false}
});
});
	

});
