/*
 * @author Balaji
 * @name: A to Z SEO Tools v2 - PHP Script
 * @copyright © 2017 ProThemes.Biz
 *
 */
 
//Google Malware Checker

function gMalCheck() {
    
	var $myUrl=$("#url").val();
	
	if ($myUrl==null || $myUrl=="") {
        sweetAlert(oopsStr, msgDomain , "error");
	} else {
    	if ($myUrl.indexOf("http://") == 0) { } else if ($myUrl.indexOf("https://") == 0) { } else {
            $myUrl= "http://"+$myUrl;
        }
        var getHost = document.createElement('a');
        getHost.href = $myUrl;
        var myHost = getHost.hostname;
    
        google_url = "https://www.google.com/safebrowsing/diagnostic?site="+myHost+"&amp;output=embed";
        window.open(google_url,'','width=640,height=480,scrollbars=yes, menubar=no,resizable=no,directories=no,location=0');
	}
}